Aladdin - Scala Bugtracking
[#1145] project: compiler priority: low category: bug
submitter assigned to status date submitted
Sean Martin fixed 2007-05-29 07:38:52.0
subject class-qualified private constructor crash
code
package test1
trait Contexts {
  class Context private[Contexts]
}
what happened
sean-mcdirmid:~/workspace/test13/src mcdirmid$ ../../scala/build/quick/bin/scalac -d ../bin test1/Contexts.scala\

Exception in thread "main" java.lang.AssertionError: assertion failed: java.lang.Object with ScalaObject
  private[Contexts] def test1$Contexts$$this(): test1.Contexts#Context = {
    Context.super.this();
    ()
  };
  protected   val $outer: test1.Contexts = _;
    def test1$Contexts$Context$$$outer(): test1.Contexts = Context.this.$outer
}
	at scala.Predef$.assert(Predef.scala:90)
	at scala.tools.nsc.transform.Constructors$ConstructorTransformer.transformClassTemplate(Constructors.scala:45)
\

	at scala.tools.nsc.transform.Constructors$ConstructorTransformer.transform(Constructors.scala:211)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$35.apply(Trees.scala:1326)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$35.apply(Trees.scala:1324)
	at scala.List$.loop$0(List.scala:243)
	at scala.List$.mapConserve(List.scala:260)
	at scala.tools.nsc.ast.Trees$Transformer.transformStats(Trees.scala:1324)
	at scala.tools.nsc.ast.Trees$Transformer.transform(Trees.scala:1236)
	at scala.tools.nsc.transform.Constructors$ConstructorTransformer.transform(Constructors.scala:213)
	at scala.tools.nsc.ast.Trees$Transformer.transformTemplate(Trees.scala:1310)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$22.apply(Trees.scala:1204)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$22.apply(Trees.scala:1204)
	at scala.tools.nsc.ast.Trees$Transformer.atOwner(Trees.scala:1332)
	at scala.tools.nsc.ast.Trees$Transformer.transform(Trees.scala:1203)
	at scala.tools.nsc.transform.Constructors$ConstructorTransformer.transform(Constructors.scala:213)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$35.apply(Trees.scala:1326)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$35.apply(Trees.scala:1324)
	at scala.List$.loop$0(List.scala:243)
	at scala.List$.mapConserve(List.scala:260)
	at scala.tools.nsc.ast.Trees$Transformer.transformStats(Trees.scala:1324)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$21.apply(Trees.scala:1200)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$21.apply(Trees.scala:1200)
	at scala.tools.nsc.ast.Trees$Transformer.atOwner(Trees.scala:1332)
	at scala.tools.nsc.ast.Trees$Transformer.transform(Trees.scala:1199)
	at scala.tools.nsc.transform.Constructors$ConstructorTransformer.transform(Constructors.scala:213)
	at scala.tools.nsc.ast.Trees$Transformer.transformUnit(Trees.scala:1327)
	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:364)
	at scala.collection.mutable.ListBuffer$$anon$0.foreach(ListBuffer.scala:247)
	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-06-01 17:22:24.0