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
compiler NPE in pattern matcher #8337
Comments
Imported From: https://issues.scala-lang.org/browse/SI-8337?orig=1 |
@gkossakowski said: |
@gkossakowski said:
|
@retronym said:
|
@gkossakowski said: |
@retronym said (edited on Mar 21, 2014 4:05:51 PM UTC): |
@retronym said (edited on Mar 21, 2014 4:56:00 PM UTC): abstract class InaccessibleType {
def foo[T, U](implicit ev: Ordering[T])
def convertTo[T: Ordering]: T = ???
foo[Long, Double]
foo
convertTo[String] // erroneous or inaccessible type
} Scala 2.11 exhibits the same failure from v2.11.0-M2-256-g3f21f00 (the relevent merge from 2.10.x to master that I found using That fix turned out to be so vital, that it was backported to 2.10.x under a forward compatibility flag: dotta/scala@fdead2b
So I think we can use that flag as a workaround for |
Lee Mighdoll (mighdoll) said: |
@retronym said: |
Ran into a compiler crash today. Fails on 2.10.3 (and .4-RC2) as well. Not minimized, but easy to to reproduce.
Remove the line tagged 'COMPILER bug' and the problem goes away.
Partial tack trace:
The text was updated successfully, but these errors were encountered: