Aladdin - Scala Bugtracking
[#911] project: compiler priority: high category: bug
submitter assigned to status date submitted
Stephane Martin fixed 2007-01-25 14:30:19.0
subject [Sean] Compiler crash with local case classes
code
def foo: Any = {
  case class Foo {}
  Foo;
}
what happened
Exception in thread "main" java.lang.AssertionError: assertion failed: class Foo
        at scala.Predef$.assert(Predef.scala:89)
        at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.transformStat(RefChecks.scala:489)
        at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer$$anonfun$9.apply(RefChecks.scala:453)
        at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer$$anonfun$9.apply(RefChecks.scala:453)
        at scala.List.flatMap(List.scala:965)
        at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.transformStats(RefChecks.scala:453)
        at scala.tools.nsc.ast.Trees$Transformer.transform(Trees.scala:1129)
        at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.transform(RefChecks.scala:631)
        at scala.tools.nsc.ast.Trees$Transformer$$anonfun$20.apply(Trees.scala:1108)
        at scala.tools.nsc.ast.Trees$Transformer$$anonfun$20.apply(Trees.scala:1107)
        at scala.tools.nsc.ast.Trees$Transformer.atOwner(Trees.scala:1217)
        at scala.tools.nsc.ast.Trees$Transformer.transform(Trees.scala:1106)
        [..]
what expected Compiles silently (ok with previous Scala versions)
[back to overview]
Changes of this bug report
Stephane  edited on  2007-01-25 15:21:37.0
Martin fixed it in rev 9735
Stephane  edited on  2007-01-25 15:21:54.0
Martin  edited on  2007-01-25 15:40:56.0