| [#1174] | project: compiler | priority: medium | category: bug | |
|---|---|---|---|---|
| submitter | assigned to | status | date submitted | |
| Stephane | Adriaan | fixed | 2007-06-13 14:30:31.0 | |
| subject | compiler crash in Cleanup phase | |||
| code |
class Test {
abstract class Bar {
type T <: AnyRef
}
new Bar {
type T = Array[String]
println(classOf[T])
}
}
|
|||
| what happened | Exception in thread "main" java.util.NoSuchElementException: head of empty list
at scala.Nil$.head(List.scala:1163)
at scala.Nil$.head(List.scala:1160)
at scala.tools.nsc.symtab.Definitions$definitions$.signature1$0(Definitions.scala:703)
at scala.tools.nsc.symtab.Definitions$definitions$.signature(Definitions.scala:708)
at scala.tools.nsc.transform.CleanUp$CleanUpTransformer.transform(CleanUp.scala:312)
[...]
|
|||
| what expected | compiles silently | |||
| [back to overview] | ||||
| Adriaan edited on 2007-06-13 15:12:23.0 |
| fixed in r12006 : missing normalize (testing on foo.symbol, which == foo.normalize.symbol, --> then using foo.typeArgs instead of foo.normalize.typeArgs) PS: (I could have sworn I fixed this one already!?) |