Aladdin - Scala Bugtracking
[#715] project: compiler priority: low category: bug
submitter assigned to status date submitted
Sean Martin fixed 2006-08-28 13:36:54.0
subject super accessor crash
code
package test; 
trait B {
  type Node <: NodeImpl;
  trait NodeImpl {
    def self : Node;
    def chilren : List[Node];
  }
}
trait C extends B {
  type Node <: NodeImpl;
  trait NodeImpl extends super.NodeImpl {
    override def children = super.chilren;
    children;
  }
}
what happened
Exception in thread "main" java.lang.Error: no-symbol does not have owner
	at scala.tools.nsc.symtab.Symbols$NoSymbol$.owner(Symbols.scala:1118)
	at scala.tools.nsc.symtab.Symbols$Symbol.locationString(Symbols.scala:819)
	at scala.tools.nsc.typechecker.SuperAccessors$SuperAccTransformer.transform(SuperAccessors.scala:83)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$16.apply(Trees.scala:967)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$16.apply(Trees.scala:966)
	at scala.tools.nsc.ast.Trees$Transformer.atOwner(Trees.scala:1068)
	at scala.tools.nsc.typechecker.SuperAccessors$SuperAccTransformer.atOwner(SuperAccessors.scala:116)
	at scala.tools.nsc.ast.Trees$Transformer.transform(Trees.scala:965)
	at scala.tools.nsc.typechecker.SuperAccessors$SuperAccTransformer.transform(SuperAccessors.scala:111)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$19.apply(Trees.scala:1046)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$19.apply(Trees.scala:1046)
	at scala.List$.loop$0(List.scala:232)
	at scala.List$.mapConserve(List.scala:249)
	at scala.tools.nsc.ast.Trees$Transformer.transformTrees(Trees.scala:1046)
	at scala.tools.nsc.typechecker.SuperAccessors$SuperAccTransformer.transform(SuperAccessors.scala:61)
	at scala.tools.nsc.ast.Trees$Transformer.transformTemplate(Trees.scala:1048)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$13.apply(Trees.scala:954)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$13.apply(Trees.scala:953)
	at scala.tools.nsc.ast.Trees$Transformer.atOwner(Trees.scala:1068)
	at scala.tools.nsc.typechecker.SuperAccessors$SuperAccTransformer.atOwner(SuperAccessors.scala:116)
	at scala.tools.nsc.ast.Trees$Transformer.transform(Trees.scala:952)
	at scala.tools.nsc.typechecker.SuperAccessors$SuperAccTransformer.transform(SuperAccessors.scala:57)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$19.apply(Trees.scala:1046)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$19.apply(Trees.scala:1046)
	at scala.List$.loop$0(List.scala:232)
	at scala.List$.mapConserve(List.scala:249)
	at scala.tools.nsc.ast.Trees$Transformer.transformTrees(Trees.scala:1046)
	at scala.tools.nsc.typechecker.SuperAccessors$SuperAccTransformer.transform(SuperAccessors.scala:61)
	at scala.tools.nsc.ast.Trees$Transformer.transformTemplate(Trees.scala:1048)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$13.apply(Trees.scala:954)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$13.apply(Trees.scala:953)
	at scala.tools.nsc.ast.Trees$Transformer.atOwner(Trees.scala:1068)
	at scala.tools.nsc.typechecker.SuperAccessors$SuperAccTransformer.atOwner(SuperAccessors.scala:116)
	at scala.tools.nsc.ast.Trees$Transformer.transform(Trees.scala:952)
	at scala.tools.nsc.typechecker.SuperAccessors$SuperAccTransformer.transform(SuperAccessors.scala:57)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$25.apply(Trees.scala:1062)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$25.apply(Trees.scala:1060)
	at scala.List$.loop$0(List.scala:232)
	at scala.List$.mapConserve(List.scala:249)
	at scala.tools.nsc.ast.Trees$Transformer.transformStats(Trees.scala:1060)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$12.apply(Trees.scala:949)
	at scala.tools.nsc.ast.Trees$Transformer$$anonfun$12.apply(Trees.scala:949)
	at scala.tools.nsc.ast.Trees$Transformer.atOwner(Trees.scala:1068)
	at scala.tools.nsc.typechecker.SuperAccessors$SuperAccTransformer.atOwner(SuperAccessors.scala:116)
	at scala.tools.nsc.ast.Trees$Transformer.transform(Trees.scala:948)
	at scala.tools.nsc.typechecker.SuperAccessors$SuperAccTransformer.transform(SuperAccessors.scala:111)
	at scala.tools.nsc.ast.Trees$Transformer.transformUnit(Trees.scala:1063)
	at scala.tools.nsc.transform.Transform$Phase.apply(Transform.scala:26)
	at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:218)
	at scala.tools.nsc.Global$GlobalPhase$$anonfun$1.apply(Global.scala:207)
	at scala.tools.nsc.Global$GlobalPhase$$anonfun$1.apply(Global.scala:207)
	at scala.Iterator$class.foreach(Iterator.scala:304)
	at scala.collection.mutable.ListBuffer$$anon$0.foreach(ListBuffer.scala:216)
	at scala.tools.nsc.Global$GlobalPhase.run(Global.scala:207)
	at scala.tools.nsc.Global$Run.compileSources(Global.scala:469)
	at scala.tools.nsc.Global$Run.compile(Global.scala:533)
	at scala.tools.nsc.Main$.process(Main.scala:76)
	at scala.tools.nsc.Main$.main(Main.scala:98)
	at scala.tools.nsc.Main.main(Main.scala)
what expected
[back to overview]
Changes of this bug report
Martin  edited on  2006-09-04 19:38:06.0