File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ Any version number that starts with `0.` is automatically recognized as Dotty by
43
43
the ` sbt-dotty ` plugin, you don't need to set up anything:
44
44
45
45
``` scala
46
- scalaVersion := " 0.6 .0-RC1"
46
+ scalaVersion := " 0.7 .0-RC1"
47
47
```
48
48
49
49
#### Nightly builds
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ lazy val root = (project in file(".")).
4
4
description := " Example sbt project that compiles using Dotty" ,
5
5
version := " 0.1" ,
6
6
7
- scalaVersion := " 0.6 .0-RC1"
7
+ scalaVersion := " 0.7 .0-RC1"
8
8
)
Original file line number Diff line number Diff line change 4
4
object EnumTypes {
5
5
6
6
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
9
9
}
10
10
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 ) {
13
12
private final val G = 6.67300E-11
14
13
def surfaceGravity = G * mass / (radius * radius)
15
14
def surfaceWeight (otherMass : Double ) = otherMass * surfaceGravity
16
- }
17
15
18
- object Planet {
19
16
case MERCURY extends Planet (3.303e+23 , 2.4397e6 )
20
17
case VENUS extends Planet (4.869e+24 , 6.0518e6 )
21
18
case EARTH extends Planet (5.976e+24 , 6.37814e6 )
You can’t perform that action at this time.
0 commit comments