Skip to content

Commit 9bb0de8

Browse files
Dotty 3 -> Scala 3
1 parent ec90a57 commit 9bb0de8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/blog/_posts/2019-05-24-15th-dotty-milestone-release.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ scala> Foo(1) plus Foo(2)
7474
val res3: Int = 3
7575
```
7676

77-
To smoothen the migration, the deprecation warnings will only be emitted if you compile with the `-strict` flag under Dotty 3. Alphanumeric methods that are defined without the `@infix` annotation used in an infix position will be deprecated by default starting with Dotty 3.1.
77+
To smoothen the migration, the deprecation warnings will only be emitted if you compile with the `-strict` flag under Scala 3. Alphanumeric methods that are defined without the `@infix` annotation used in an infix position will be deprecated by default starting with Scala 3.1.
7878

7979
For more information, see the the [documentation](http://dotty.epfl.ch/docs/reference/changed-features/operators.html#the-infix-annotation). Note that the `@alpha` annotation also described in the documentation is planned for the future and is not available in this release.
8080

@@ -114,7 +114,7 @@ We changed this to reduce confusion when calling functions with mixed explicit a
114114
// than the right hand side expression's type Any
115115
```
116116

117-
The above code will fail with a compile-time error in Dotty 3.1 and in Dotty 3 with the `-strict` flag. In contrast, in Scala 2, the above would have compiled fine but failed on runtime with an exception.
117+
The above code will fail with a compile-time error in Scala 3.1 and in Scala 3 with the `-strict` flag. In contrast, in Scala 2, the above would have compiled fine but failed on runtime with an exception.
118118

119119
Dotty compiler will allow such a pattern binding only if the pattern is *irrefutable* – that is, if the right-hand side conforms to the pattern's type. E.g. the following is OK:
120120

@@ -138,7 +138,7 @@ The same is implemented for pattern bindings in `for` expressions:
138138
// than the right hand side expression's type Any
139139
```
140140

141-
For the migration purposes, the above change will only take effect in Dotty 3.1. You can use it in Dotty 3 with the `-strict` flag.
141+
For the migration purposes, the above change will only take effect in Scala 3.1. You can use it in Scala 3 with the `-strict` flag.
142142

143143
For more information, see the [documentation](http://dotty.epfl.ch/docs/reference/changed-features/pattern-bindings.html).
144144

0 commit comments

Comments
 (0)