Skip to content

Commit b2fe44c

Browse files
committed
Update to Dotty 0.7.0-RC1
1 parent 643b5d1 commit b2fe44c

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Any version number that starts with `0.` is automatically recognized as Dotty by
4343
the `sbt-dotty` plugin, you don't need to set up anything:
4444

4545
```scala
46-
scalaVersion := "0.6.0-RC1"
46+
scalaVersion := "0.7.0-RC1"
4747
```
4848

4949
#### Nightly builds

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ lazy val root = (project in file(".")).
44
description := "Example sbt project that compiles using Dotty",
55
version := "0.1",
66

7-
scalaVersion := "0.6.0-RC1"
7+
scalaVersion := "0.7.0-RC1"
88
)

src/main/scala/EnumTypes.scala

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,15 @@
44
object EnumTypes {
55

66
enum ListEnum[+A] {
7-
case Cons[+A](h: A, t: ListEnum[A]) extends ListEnum[A]
8-
case Empty extends ListEnum[Nothing]
7+
case Cons(h: A, t: ListEnum[A])
8+
case Empty
99
}
1010

11-
// taken from: https://github.com/lampepfl/dotty/issues/1970
12-
enum class Planet(mass: Double, radius: Double) {
11+
enum Planet(mass: Double, radius: Double) {
1312
private final val G = 6.67300E-11
1413
def surfaceGravity = G * mass / (radius * radius)
1514
def surfaceWeight(otherMass: Double) = otherMass * surfaceGravity
16-
}
1715

18-
object Planet {
1916
case MERCURY extends Planet(3.303e+23, 2.4397e6)
2017
case VENUS extends Planet(4.869e+24, 6.0518e6)
2118
case EARTH extends Planet(5.976e+24, 6.37814e6)

0 commit comments

Comments
 (0)