Only in interpreter:
class A:List()
Exception in thread "main" java.lang.AssertionError: assertion failed: mismatch: List();{
$anon.super.this(4);
()
};{
def this(Int): $iw.this.A
}
at scala.Predef$.assert(Predef.scala:90)
at scala.tools.nsc.typechecker.Typers$Typer.computeParamAliases(Typers.scala:1112)
at scala.tools.nsc.typechecker.Typers$Typer.typedDefDef(Typers.scala:1178)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:2415)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:2641)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:2674)
at scala.tools.nsc.typechecker.Typers$Typer.typedStat$0(Typers.scala:1396)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$58.apply(Typers.scala:1426)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$58.apply(Typers.scala:1426)
at scala.List$.loop$0(List.scala:243)
...
|