Skip to content

Commit 00c13fb

Browse files
committed
Fix #8015: update docs for vararg patterns
1 parent f681d2b commit 00c13fb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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)