Aladdin - Scala Bugtracking
[#1105] project: compiler priority: low category: bug
submitter assigned to status date submitted
Sean Martin fixed 2007-05-14 14:28:13.0
subject qualified private case class self reference crash
code
package test;
trait Test {
  trait X {
    private[Test] case class Matched(within : Matched);
  }
}
what happened
sean-mcdirmid:~/workspace/test13 mcdirmid$ ../scala/build/quick/bin/scalac src/test/Test.scala
Exception in thread "main" java.lang.AssertionError: assertion failed: class Matched
	at scala.Predef$.assert(Predef.scala:90)
	at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.transformStat(RefChecks.scala:594)
	at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer$$anonfun$10.apply(RefChecks.scala:557)
	at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer$$anonfun$10.apply(RefChecks.scala:557)
	at scala.List.flatMap(List.scala:966)
	at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.transformStats(RefChecks.scala:557)
	at scala.tools.nsc.ast.Trees$Transformer.transform(Trees.scala:1180)
	at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.transform(RefChecks.scala:765)
	at scala.tools.nsc.ast.Trees$Transformer.transformTemplate(Trees.scala:1252)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$22.apply(Trees.scala:1148)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$22.apply(Trees.scala:1145)
	at scala.tools.nsc.ast.Trees$Transformer.atOwner(Trees.scala:1274)
	at scala.tools.nsc.ast.Trees$Transformer.transform(Trees.scala:1144)
	at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.transform(RefChecks.scala:765)
	at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.transformStat(RefChecks.scala:628)
	at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer$$anonfun$10.apply(RefChecks.scala:557)
	at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer$$anonfun$10.apply(RefChecks.scala:557)
	at scala.List.flatMap(List.scala:966)
	at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.transformStats(RefChecks.scala:557)
	at scala.tools.nsc.ast.Trees$Transformer.transform(Trees.scala:1180)
	at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.transform(RefChecks.scala:765)
	at scala.tools.nsc.ast.Trees$Transformer.transformTemplate(Trees.scala:1252)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$22.apply(Trees.scala:1148)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$22.apply(Trees.scala:1145)
	at scala.tools.nsc.ast.Trees$Transformer.atOwner(Trees.scala:1274)
	at scala.tools.nsc.ast.Trees$Transformer.transform(Trees.scala:1144)
	at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.transform(RefChecks.scala:765)
	at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.transformStat(RefChecks.scala:628)
	at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer$$anonfun$10.apply(RefChecks.scala:557)
	at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer$$anonfun$10.apply(RefChecks.scala:557)
	at scala.List.flatMap(List.scala:966)
	at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.transformStats(RefChecks.scala:557)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$21.apply(Trees.scala:1141)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$21.apply(Trees.scala:1141)
	at scala.tools.nsc.ast.Trees$Transformer.atOwner(Trees.scala:1274)
	at scala.tools.nsc.ast.Trees$Transformer.transform(Trees.scala:1140)
	at scala.tools.nsc.typechecker.RefChecks$RefCheckTransformer.transform(RefChecks.scala:765)
	at scala.tools.nsc.ast.Trees$Transformer.transformUnit(Trees.scala:1269)
	at scala.tools.nsc.transform.Transform$Phase.apply(Transform.scala:30)
	at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:241)
	at scala.tools.nsc.Global$GlobalPhase$$anonfun$2.apply(Global.scala:230)
	at scala.tools.nsc.Global$GlobalPhase$$anonfun$2.apply(Global.scala:230)
	at scala.Iterator$class.foreach(Iterator.scala:363)
	at scala.collection.mutable.ListBuffer$$anon$0.foreach(ListBuffer.scala:245)
	at scala.tools.nsc.Global$GlobalPhase.run(Global.scala:230)
	at scala.tools.nsc.Global$Run.compileSources(Global.scala:498)
	at scala.tools.nsc.Global$Run.compile(Global.scala:572)
	at scala.tools.nsc.Main$.process(Main.scala:57)
	at scala.tools.nsc.Main$.main(Main.scala:77)
	at scala.tools.nsc.Main.main(Main.scala)
what expected
[back to overview]
Changes of this bug report
Martin  edited on  2007-05-30 11:11:52.0