-
Notifications
You must be signed in to change notification settings - Fork 21
Compiler crash with higher kinded existential #4017
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
Comments
Imported From: https://issues.scala-lang.org/browse/SI-4017?orig=1 |
@adriaanm said: |
Aaron Novstrup (anovstrup) said: |
@adriaanm said: motivation:
uncurry has been relying on an ugly hack to distinguish these cases based on ad-hoc kind inference anonymous type functions are being used more often (see #2741, #4017, #4079, #3443, #3106), which makes a proper treatment of PolyTypes more pressing change to type representation: PolyType(Nil, tp) is now invalid the kind of a PolyType is * iff its resulttype is a NullaryMethodType or a MethodType (i.e., it's a polymorphic value) NullaryMethodType is eliminated during uncurry pickling: the rewrite probably isn't complete, but was validated by compiling against the old scalacheck jar (which has plenty of polymorphic nullary methods) summary of the refactoring:
TODO: scalap and eclipse review by odersky, rytz |
@adriaanm said: |
The following code crashes the compiler:
What versions of the following are you using?
Scala: 2.8.1.final
Java: Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_22
Operating system: Ubuntu 10.04
Trace:
The text was updated successfully, but these errors were encountered: