@@ -36,11 +36,11 @@ and enables integration with tools such as [Bloop](https://scalacenter.github.io
3636If you are already using Dotty with sbt 0.13, follow these simple steps to upgrade:
3737- update sbt version to 1.1.4 in ` project/build.properties `
3838- 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) `
4040
4141### 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:
4444
4545``` scala
4646scala> def foo (x : Any ) = x.isInstanceOf [List [String ]]
@@ -90,8 +90,9 @@ f[[X] => String]
9090section of our documentation.
9191
9292### 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:
9596
9697``` scala
9798val myList =
@@ -104,6 +105,7 @@ myList
104105 .sorted
105106 .forEach(println(_))
106107
108+ // prints:
107109// C1
108110// C2
109111```
0 commit comments