Aladdin - Scala Bugtracking
[#716] project: compiler priority: high category: bug
submitter assigned to status date submitted
Stephane Martin fixed 2006-08-28 16:43:18.0
subject Compiler crash in typechecker
code
class Foo {
  var x = _
}
what happened
test.scala:2 error: missing parameter type
  var x = _
  ^
Exception in thread "main" java.lang.Error: unexpected tree: 
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1762)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1777)
        at scala.tools.nsc.typechecker.Typers$Typer.typedType(Typers.scala:1826)
        at scala.tools.nsc.typechecker.Typers$Typer.typedValDef(Typers.scala:718)
        at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1452)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1777)
        at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1804)
        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$48.apply(Typers.scala:1012)
        at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$48.apply(Typers.scala:1001)
        at scala.List$.loop$0(List.scala:232)
[..]
what expected
[back to overview]
Changes of this bug report
Martin  edited on  2006-09-04 16:40:51.0