test.scala:3 error: recursive value bar needs type
val bar = new Bar
^
Exception in thread "main" java.lang.Error: unexpected tree: <type ?>
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1858)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1872)
at scala.tools.nsc.typechecker.Typers$Typer.typedType(Typers.scala:1922)
at scala.tools.nsc.typechecker.Typers$Typer.typedValDef(Typers.scala:770)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:1541)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1872)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:1900)
at scala.tools.nsc.typechecker.Typers$Typer.typedStat$0(Typers.scala:1074)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$47.apply(Typers.scala:1095)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$47.apply(Typers.scala:1095)
at scala.List$.loop$0(List.scala:239)
at scala.List$.mapConserve(List.scala:256)
[...]
|