Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/docs/internals/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ SimpleType ::= SimpleType TypeArgs
| StableId
| Path ‘.’ ‘type’ SingletonTypeTree(p)
| ‘(’ ArgTypes ‘)’ Tuple(ts)
| ‘_’ SubtypeBounds
| ‘?’ SubtypeBounds
| Refinement RefinedTypeTree(EmptyTree, refinement)
| SimpleLiteral SingletonTypeTree(l)
| ‘$’ ‘{’ Block ‘}’
Expand Down
7 changes: 5 additions & 2 deletions docs/docs/reference/changed-features/vararg-patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,8 @@ The change to the grammar is:

## Compatibility considerations

Under the `-language:Scala2Compat` option, Dotty will accept both the old and the new syntax.
A migration warning will be emitted when the old syntax is encountered.
To enable smooth cross compilation between Scala 2 and Scala 3, Dotty will
accept both the old and the new syntax. Under the `-strict` setting, an error
will be emitted when the old syntax is encountered. They will be enabled by
default in version 3.1 of the language.