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
-Xsource:2.10 coverage #8402
Comments
Imported From: https://issues.scala-lang.org/browse/SI-8402?orig=1 |
@paulp said: % pscalac -Xsource:2.10 /l/trunk1/src/library/scala/Option.scala |
@paulp said: |
@retronym said: BTW, [~garillot] has a jenkins job that typechecks a few projects with We know that we don't have the resources to be completely bug-compatible with 2.10 under this flag, so we are relying on the data from these builds to figure out where we get the most bang for our buck. The primary use case for this flag is to use the 2.11 IDE for 2.10 code bases. |
@retronym said: |
@paulp said: |
@paulp said: |
@paulp said (edited on Mar 12, 2014 5:21:09 PM UTC): The last problem is a change in the scala.runtime support java classes, introduced in 265fc6b230 . Now it generates calls to "create" which doesn't exist in the 2.10 sources.
It's relatively easy to work around by substituting the 2.11 scala/runtime/*.java classes for the 2.10 ones. |
@retronym said (edited on Mar 12, 2014 5:27:38 PM UTC): I'm happy to accept a patch for the variance loosening for RC2 (scheduled on Friday, I think). I'll see if I can pin down the ambiguity change. |
@paulp said: |
@paulp said: |
Should be fixed by scala/scala#3623 |
It's hard to know how many more places -Xsource 2.10 might need to be respected for what I want to work, because compilation tends to halt before one has a clear picture. But there are at least the two shown here. First:
That compiles in 2.10 but not in 2.11.
"What I want to work" is to be able to compile the 2.10 sources with 2.11. For y'all to push through the errors seems like an easy way to find some of the holes in -Xsource.
The other place, which arises first:
It only became possible to even try this after 0fbd4422b2 which fixed "scala.reflect.internal.FatalError: class Universe does not have a member Quasiquote", thanks for that.
In case you want to pursue this I made a script to embody what I think should work, which might even serve as the basis of a test.
The text was updated successfully, but these errors were encountered: