You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.AssertionError: assertion failed
at scala.Predef$.assert(Predef.scala:204)
at dotty.tools.dotc.typer.Applications.$anonfun$resolveOverloaded$5(Applications.scala:1390)
at dotty.tools.dotc.util.Stats$.track(Stats.scala:35)
at dotty.tools.dotc.typer.Applications.resolveOverloaded(Applications.scala:1303)
at dotty.tools.dotc.typer.Applications.$anonfun$resolveOverloaded$5(Applications.scala:1392)
at dotty.tools.dotc.util.Stats$.track(Stats.scala:35)
at dotty.tools.dotc.typer.Applications.resolveOverloaded(Applications.scala:1303)
at dotty.tools.dotc.typer.Applications.$anonfun$resolveOverloaded$1(Applications.scala:1289)
at dotty.tools.dotc.util.Stats$.track(Stats.scala:35)
at dotty.tools.dotc.typer.Applications.resolveOverloaded(Applications.scala:1244)
at dotty.tools.dotc.typer.Applications.resolveOverloaded$(Applications.scala:1244)
at dotty.tools.dotc.typer.Typer.resolveOverloaded(Typer.scala:82)
at dotty.tools.dotc.typer.Typer.adaptOverloaded$1(Typer.scala:2019)
at dotty.tools.dotc.typer.Typer.adaptInterpolated(Typer.scala:2417)
at dotty.tools.dotc.typer.Typer.$anonfun$adapt$3(Typer.scala:1962)
at dotty.tools.dotc.reporting.trace$.op1$2(trace.scala:25)
at dotty.tools.dotc.reporting.trace$.apply(trace.scala:26)
at dotty.tools.dotc.typer.Typer.$anonfun$adapt$1(Typer.scala:1955)
at dotty.tools.dotc.util.Stats$.track(Stats.scala:35)
at dotty.tools.dotc.typer.Typer.adapt(Typer.scala:1955)
at dotty.tools.dotc.typer.Typer.$anonfun$typed$2(Typer.scala:1790)
at dotty.tools.dotc.reporting.trace$.op1$2(trace.scala:25)
at dotty.tools.dotc.reporting.trace$.apply(trace.scala:26)
at dotty.tools.dotc.typer.Typer.typed(Typer.scala:1786)
at dotty.tools.dotc.typer.Typer.typedExpr(Typer.scala:1847)
at dotty.tools.dotc.typer.Applications.$anonfun$typedTypeApply$1(Applications.scala:792)
at dotty.tools.dotc.util.Stats$.track(Stats.scala:35)
at dotty.tools.dotc.typer.Applications.typedTypeApply(Applications.scala:789)
at dotty.tools.dotc.typer.Applications.typedTypeApply$(Applications.scala:789)
at dotty.tools.dotc.typer.Typer.typedTypeApply(Typer.scala:82)
...
Uh oh!
There was an error while loading. Please reload this page.
Inspired by scala/bug#10628.
I'm not sure if I should create 2 separate issues or not, so apologies in advance.
The following invalid code:
crashes the compiler with:
The same for the following valid code:
Also, given the previous definitions of
Apply
andA
, the following doesn't compile with dotc but does with scalac:The text was updated successfully, but these errors were encountered: