Skip to content

Commit 619f951

Browse files
Merge pull request #8039 from dotty-staging/fix-8015
Fix #8015: update docs
2 parents f681d2b + faa9ae6 commit 619f951

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

docs/docs/internals/syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 ‘}’

docs/docs/reference/changed-features/vararg-patterns.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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+

0 commit comments

Comments
 (0)