Aladdin - Scala Bugtracking
[#988] project: compiler priority: low category: bug
submitter assigned to status date submitted
Nikolay Martin fixed 2007-03-12 08:55:49.0
subject [contrib #363] "(x.y) method" compiler crash
code
(x.y) toString    // compiler crash

// However,

(x.y).toString    // fine

(x.y) toString()  // also fine
what happened
Compiler crashes:
Exception in thread "main" java.lang.Error: unexpected tree: 
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:2397)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:2417)
        at scala.tools.nsc.typechecker.Typers$Typer.typedQualifier(Typers.scala:2470)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:2320)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:2417)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:2450)
        at scala.tools.nsc.typechecker.Typers$Typer.typedStat$0(Typers.scala:1339)
        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$55.apply(Typers.scala:1362)
        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$55.apply(Typers.scala:1362)
        at scala.List$.loop$0(List.scala:243)
        at scala.List$.mapConserve(List.scala:260)
        at scala.List$.loop$0(List.scala:247)
        at scala.List$.mapConserve(List.scala:260)
        at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:1362)
        at scala.tools.nsc.typechecker.Typers$Typer.typedTemplate(Typers.scala:973)
        at scala.tools.nsc.typechecker.Typers$Typer.typedModuleDef(Typers.scala:886)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1950)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:2417)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:2450)
        at scala.tools.nsc.typechecker.Typers$Typer.typedStat$0(Typers.scala:1339)
        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$55.apply(Typers.scala:1362)
        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$55.apply(Typers.scala:1362)
        at scala.List$.loop$0(List.scala:243)
        at scala.List$.mapConserve(List.scala:260)
        at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:1362)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1943)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:2417)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:2450)
        at scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$1.apply(Analyzer.scala:38)
        at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:231)
        at scala.tools.nsc.Global$GlobalPhase$$anonfun$2.apply(Global.scala:220)
        at scala.tools.nsc.Global$GlobalPhase$$anonfun$2.apply(Global.scala:220)
        at scala.Iterator$class.foreach(Iterator.scala:380)
        at scala.collection.mutable.ListBuffer$$anon$0.foreach(ListBuffer.scala:245)
        at scala.tools.nsc.Global$GlobalPhase.run(Global.scala:220)
        at scala.tools.nsc.Global$Run.compileSources(Global.scala:488)
        at scala.tools.nsc.Global$Run.compile(Global.scala:559)
        at scala.tools.nsc.Main$.process(Main.scala:57)
        at scala.tools.nsc.Main$.main(Main.scala:79)
        at scala.tools.nsc.Main.main(Main.scala)
what expected Silent compilation
[back to overview]
Changes of this bug report
Nikolay  edited on  2007-03-12 08:56:15.0
contribution #363
Martin  edited on  2007-03-12 12:32:41.0