-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Warning about open classes doesn't work in Scala 3.1.0 #13946
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
Labels
Comments
Open classes
doesn't work in Scala 3.1.0
I could not reproduce that on master. Maybe the -source future did not apply correctly? I made a regression test to make sure we do not regress in the future. |
odersky
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 9, 2021
without consulting the master,
Per the previous comment, the real bug is how did the OP see their unexpected output? For example, "Use the flag, Luke." |
olsdavis
pushed a commit
to olsdavis/dotty
that referenced
this issue
Apr 4, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Compiler version
3.1.0
Minimized code
and enabled
-source future
flag.Of course,
-language.adHocExtensions
flag has been disabled, and it hasn't importedscala.language.adHocExtensions
in these source files.Output
It compiles successfully and no warning is output.
Expectation
The warning should be output because the
open
modifier hasn't been added.On the other hand, the warning is output successfully in Scala 3.0.2.
The text was updated successfully, but these errors were encountered: