Closed
Description
The following code crashes the compiler:
def m(v: V[_] forSome { type V[_] }) = 1
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:
Welcome to Scala version 2.8.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_22).
Type in expressions to have them evaluated.
Type :help for more information.
scala> def m(v: V[_] forSome { type V[_] }) = 1
java.lang.Error: Unknown type: ()java.lang.Object, ()java.lang.Object[class scala.tools.nsc.symtab.Types$$MethodType, class scala.tools.nsc.symtab.Types$$MethodType] TypeRef? false, false
at scala.tools.nsc.symtab.SymbolTable.abort(SymbolTable.scala:33)
at scala.tools.nsc.backend.icode.TypeKinds$$class.toTypeKind(TypeKinds.scala:474)
at scala.tools.nsc.backend.icode.ICodes.toTypeKind(ICodes.scala:26)
at scala.tools.nsc.backend.icode.GenICode$$ICodePhase$$$$anonfun$$addMethodParams$$1.apply(GenICode.scala:1476)
at scala.tools.nsc.backend.icode.GenICode$$ICodePhase$$$$anonfun$$addMethodParams$$1.apply(GenICode.scala:1475)
at scala.collection.LinearSeqOptimized$$class.foreach(LinearSeqOptimized.scala:61)
at scala.collection.immutable.List.foreach(List.scala:45)
at scala.tools.nsc.backend.icode.GenICode$$ICodePhase.addMethodParams(GenICode.scala:1475)
Metadata
Metadata
Assignees
Labels
No labels