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
157157 | StableId
158158 | Path ‘.’ ‘type’ SingletonTypeTree(p)
159159 | ‘(’ ArgTypes ‘)’ Tuple(ts)
160- | ‘_ ’ SubtypeBounds
160+ | ‘? ’ SubtypeBounds
161161 | Refinement RefinedTypeTree(EmptyTree, refinement)
162162 | SimpleLiteral SingletonTypeTree(l)
163163 | ‘$’ ‘{’ Block ‘}’
Original file line number Diff line number Diff line change @@ -36,5 +36,8 @@ The change to the grammar is:
3636
3737## Compatibility considerations
3838
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