File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
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.15 .0-RC1 "
46
+ scalaVersion := " 0.16 .0-RC2 "
47
47
```
48
48
49
49
#### Nightly builds
Original file line number Diff line number Diff line change @@ -5,5 +5,5 @@ lazy val root = project
5
5
description := " Example sbt project that compiles using Dotty" ,
6
6
version := " 0.1.0" ,
7
7
8
- scalaVersion := " 0.15 .0-RC1 "
8
+ scalaVersion := " 0.16 .0-RC2 "
9
9
)
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ object EnumTypes {
32
32
33
33
def calculateEarthWeightOnPlanets (earthWeight : Double ) = {
34
34
val mass = earthWeight/ Planet .EARTH .surfaceGravity
35
- for (p <- Planet .enumValues )
35
+ for (p <- Planet .values )
36
36
println(s " Your weight on $p is ${p.surfaceWeight(mass)}" )
37
37
}
38
38
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ object TypeLambdas {
5
5
6
6
type T [+ X , Y ] = Map [Y , X ]
7
7
8
- type Tuple = [X ] => (X , X )
8
+ type Tuple = [X ] =>> (X , X )
9
9
10
10
def test : Unit = {
11
11
You can’t perform that action at this time.
0 commit comments