Skip to content

Commit 3332943

Browse files
authored
Fix open-classes.md (#18630)
`-source future` is still required as of 3.3 LTS.
2 parents 99ca930 + 3eb354b commit 3332943

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/_docs/reference/other-new-features/open-classes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ A class that is neither `abstract` nor `open` is similar to a `sealed` class: it
7777

7878
## Migration
7979

80-
`open` is a new modifier in Scala 3. To allow cross compilation between Scala 2.13 and Scala 3.0 without warnings, the feature warning for ad-hoc extensions is produced only under `-source future`. It will be produced by default from Scala 3.1 on.
80+
`open` is a new modifier in Scala 3. To allow cross compilation between Scala 2.13 and Scala 3.0 without warnings, the feature warning for ad-hoc extensions is produced only under `-source future`. It will be produced by default [from Scala 3.4 on](https://github.com/lampepfl/dotty/issues/16334).

0 commit comments

Comments
 (0)