Skip to content

Commit

Permalink
Fix open-classes.md (#18630)
Browse files Browse the repository at this point in the history
`-source future` is still required as of 3.3 LTS.
  • Loading branch information
bishabosha authored Oct 2, 2023
2 parents 99ca930 + 3eb354b commit 3332943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_docs/reference/other-new-features/open-classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ A class that is neither `abstract` nor `open` is similar to a `sealed` class: it

## Migration

`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.
`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 comments on commit 3332943

Please sign in to comment.