File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
reference/changed-features Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ SimpleType ::= SimpleType TypeArgs
157
157
| StableId
158
158
| Path ‘.’ ‘type’ SingletonTypeTree(p)
159
159
| ‘(’ ArgTypes ‘)’ Tuple(ts)
160
- | ‘_ ’ SubtypeBounds
160
+ | ‘? ’ SubtypeBounds
161
161
| Refinement RefinedTypeTree(EmptyTree, refinement)
162
162
| SimpleLiteral SingletonTypeTree(l)
163
163
| ‘$’ ‘{’ Block ‘}’
Original file line number Diff line number Diff line change @@ -36,5 +36,8 @@ The change to the grammar is:
36
36
37
37
## Compatibility considerations
38
38
39
- Under the ` -language:Scala2Compat ` option, Dotty will accept both the old and the new syntax.
40
- A migration warning will be emitted when the old syntax is encountered.
39
+ To enable smooth cross compilation between Scala 2 and Scala 3, Dotty will
40
+ accept both the old and the new syntax. Under the ` -strict ` setting, an error
41
+ will be emitted when the old syntax is encountered. They will be enabled by
42
+ default in version 3.1 of the language.
43
+
You can’t perform that action at this time.
0 commit comments