-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Consider source code as Scala 2 under -Ycompile-scala2-library
#22520
Conversation
Note that I haven't enabled |
CI is failing because of the string interpolators, I forgot that I changed it in 8cb6b70, we should probably use Scala 3's |
885403e
to
aa9074f
Compare
I've rebased it on top of #22536 because it failed to find the definitions of extension methods for |
aa9074f
to
92c9a20
Compare
92c9a20
to
78c7473
Compare
I've had to change the set of flags that are considered 'effectively open'
@WojciechMazur has run the open community build against this PR and no compile-time regression was found. |
compiler/src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala
Outdated
Show resolved
Hide resolved
dce5251
to
19c42ee
Compare
When compiling under
-Ycompile-scala2-library
, we should consider the source code as Scala 2. This change will allow using Scala 2's erasure instead of Scala 3's.Related to #22480