Aladdin - Scala Bugtracking
[#667] project: compiler priority: low category: bug
submitter assigned to status date submitted
Sean Martin fixed 2006-07-20 13:04:08.0
subject compiler crash
code
package test;

object test {
  trait A {
    trait Ni;
  }
  class B extends A {
    class Ni extends super.Ni with Ni;
  }
}
what happened
java.lang.AssertionError: assertion failed: class B
	at scala.Predef$.assert(Predef.scala:182)
	at scala.tools.nsc.symtab.Symbols$TypeSymbol$$anonfun$17.apply(Symbols.scala:958)
	at scala.tools.nsc.symtab.Symbols$TypeSymbol$$anonfun$17.apply(Symbols.scala:958)
	at scala.List.foreach(List.scala:681)
	at scala.tools.nsc.symtab.Symbols$TypeSymbol.setInfo(Symbols.scala:958)
	at scala.tools.nsc.symtab.Symbols$TypeSymbol.setInfo(Symbols.scala:918)
	at scala.tools.nsc.typechecker.Namers$Namer$$anon$0.complete(Namers.scala:311)
	at scala.tools.nsc.symtab.Symbols$Symbol.info(Symbols.scala:346)
	at scala.tools.nsc.symtab.Symbols$Symbol.initialize(Symbols.scala:423)
	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1423)
	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1758)
	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1785)
	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$46.apply(Typers.scala:998)
	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$46.apply(Typers.scala:988)
	at scala.List$.loop$0(List.scala:232)
	at scala.List$.mapConserve(List.scala:249)
	at scala.List$.loop$0(List.scala:236)
	at scala.List$.mapConserve(List.scala:249)
	at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:988)
	at scala.tools.nsc.typechecker.Typers$Typer.typedTemplate(Typers.scala:703)
	at scala.tools.nsc.typechecker.Typers$Typer.typedClassDef(Typers.scala:630)
	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1432)
	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1758)
	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1785)
	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$46.apply(Typers.scala:998)
	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$46.apply(Typers.scala:988)
	at scala.List$.loop$0(List.scala:232)
	at scala.List$.mapConserve(List.scala:249)
	at scala.List$.loop$0(List.scala:236)
	at scala.List$.mapConserve(List.scala:249)
	at scala.List$.loop$0(List.scala:236)
	at scala.List$.mapConserve(List.scala:249)
	at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:988)
	at scala.tools.nsc.typechecker.Typers$Typer.typedTemplate(Typers.scala:703)
	at scala.tools.nsc.typechecker.Typers$Typer.typedModuleDef(Typers.scala:642)
	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1435)
	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1758)
	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1785)
	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$46.apply(Typers.scala:998)
	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$46.apply(Typers.scala:988)
	at scala.List$.loop$0(List.scala:232)
	at scala.List$.mapConserve(List.scala:249)
	at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:988)
	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1428)
	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1758)
	at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1785)
	at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$1.apply(Analyzer.scala:38)
	at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:216)
	at scala.tools.nsc.Global$GlobalPhase$$anonfun$1.apply(Global.scala:205)
	at scala.tools.nsc.Global$GlobalPhase$$anonfun$1.apply(Global.scala:205)
	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:205)
	at scala.tools.nsc.Global$Run.compileSources(Global.scala:467)
	at scala.tools.nsc.Global$Run.compile(Global.scala:531)
	at ch.epfl.lamp.sdt.build.ScalaCompilerManager$ScalaCompiler.compile(ScalaCompilerManager.java:188)
	at ch.epfl.lamp.sdt.build.ScalaProjectBuilder.build(ScalaProjectBuilder.java:76)
	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:603)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:167)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:230)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:233)
	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:252)
	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:285)
	at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:145)
	at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:208)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
what expected
[back to overview]
Changes of this bug report
Martin  edited on  2006-07-24 17:47:04.0