Aladdin - Scala Bugtracking
[#800] project: compiler priority: low category: bug
submitter assigned to status date submitted
Sean Martin fixed 2006-11-04 14:00:58.0
subject Duplicate abstract and concrete vars = head of list crash
code
package test;
trait Test {
  var qualification : String;
  var qualification = false;
}
what happened
sean-mcdirmids-computer:~/workspace/test27/src mcdirmid$ ../../scala/build/quick/bin/scalac -log:super -d .\
./bin/ -sourcepath . test/Test.scala
Exception in thread "main" java.util.NoSuchElementException: head of empty list
	at scala.Nil$.head(List.scala:1094)
	at scala.Nil$.head(List.scala:1091)
	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$19.apply(Typers.scala:829)
	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$19.apply(Typers.scala:826)
	at scala.tools.nsc.ast.Trees$class.DefDef(Trees.scala:305)
	at scala.tools.nsc.Global.DefDef(Global.scala:33)
	at scala.tools.nsc.typechecker.Typers$Typer.setterDef$0(Typers.scala:826)
	at scala.tools.nsc.typechecker.Typers$Typer.addGetterSetter(Typers.scala:833)
	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$22.apply(Typers.scala:870)
	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$22.apply(Typers.scala:870)
	at scala.List.flatMap(List.scala:930)
	at scala.tools.nsc.typechecker.Typers$Typer.typedTemplate(Typers.scala:870)
	at scala.tools.nsc.typechecker.Typers$Typer.typedClassDef(Typers.scala:786)
	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1739)
	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:2108)
	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:2140)
	at scala.tools.nsc.typechecker.Typers$Typer.typedStat$0(Typers.scala:1199)
	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$48.apply(Typers.scala:1220)
	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$48.apply(Typers.scala:1220)
	at scala.List$.loop$0(List.scala:238)
	at scala.List$.mapConserve(List.scala:255)
	at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:1220)
	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1735)
	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:2108)
	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:2140)
	at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$1.apply(Analyzer.scala:38)
	at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:219)
	at scala.tools.nsc.Global$GlobalPhase$$anonfun$1.apply(Global.scala:208)
	at scala.tools.nsc.Global$GlobalPhase$$anonfun$1.apply(Global.scala:208)
	at scala.Iterator$class.foreach(Iterator.scala:316)
	at scala.collection.mutable.ListBuffer$$anon$0.foreach(ListBuffer.scala:244)
	at scala.tools.nsc.Global$GlobalPhase.run(Global.scala:208)
	at scala.tools.nsc.Global$Run.compileSources(Global.scala:473)
	at scala.tools.nsc.Global$Run.compile(Global.scala:542)
	at scala.tools.nsc.Main$.process(Main.scala:74)
	at scala.tools.nsc.Main$.main(Main.scala:96)
	at scala.tools.nsc.Main.main(Main.scala)
what expected
[back to overview]
Changes of this bug report
Martin  edited on  2006-11-17 18:33:34.0