Skip to content

Fix #8015: update docs #8039

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 20, 2020
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.