@@ -36,11 +36,11 @@ and enables integration with tools such as [Bloop](https://scalacenter.github.io
36
36
If you are already using Dotty with sbt 0.13, follow these simple steps to upgrade:
37
37
- update sbt version to 1.1.4 in ` project/build.properties `
38
38
- update sbt-dotty plugin to the latest version: ` addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.2.2") `
39
- - update usages of ` .withDottyCompat() ` by ` .withDottyCompat(scalaVersion.value) `
39
+ - replace usages of ` .withDottyCompat() ` by ` .withDottyCompat(scalaVersion.value) `
40
40
41
41
### Unchecked warnings [ #4045 ] ( https://github.com/lampepfl/dotty/pull/4045 )
42
- Dotty now emits ` unchecked ` warnings like ` scalac ` whenever a type test is performed but cannot
43
- safely be checked at runtime. For example:
42
+ Dotty now emits ` unchecked ` warnings like ` scalac ` whenever a type test is performed but cannot be
43
+ fully checked at runtime because of type erasure . For example:
44
44
45
45
``` scala
46
46
scala> def foo (x : Any ) = x.isInstanceOf [List [String ]]
@@ -90,8 +90,9 @@ f[[X] => String]
90
90
section of our documentation.
91
91
92
92
### Improved support for SAM type [ #4152 ] ( https://github.com/lampepfl/dotty/pull/4152 )
93
- This release includes fixes to SAM types that greatly improve interoperability with Java 8 lambdas.
94
- One can now easely write Scala code that uses Java streams:
93
+ This release includes fixes to [ SAM types] ( https://www.scala-lang.org/news/2.12.0/#lambda-syntax-for-sam-types )
94
+ that greatly improve interoperability with Java 8 lambdas. One can now easily write Scala code that
95
+ uses Java streams:
95
96
96
97
``` scala
97
98
val myList =
@@ -104,6 +105,7 @@ myList
104
105
.sorted
105
106
.forEach(println(_))
106
107
108
+ // prints:
107
109
// C1
108
110
// C2
109
111
```
0 commit comments