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
Dotty compiler version 0.5.0-bin-SNAPSHOT-git-4fefb64 -- Copyright 2002-2017, LAMP/EPFL
$ dotc abc.scala
-- [E018] Syntax Error: abc.scala:2:25 -----------------------------------------
2 | def compare(a: T, b: T)
| ^
| missing return type
longer explanation available when compiling with `-explain`
Exception in thread "main" java.lang.StackOverflowError
at dotty.tools.dotc.typer.ProtoTypes$.wildApprox(ProtoTypes.scala:478)
at dotty.tools.dotc.typer.ProtoTypes$WildApproxMap.apply(ProtoTypes.scala:551)
at dotty.tools.dotc.core.Types$TypeMap.op$3(Types.scala:3879)
at dotty.tools.dotc.core.Types$TypeMap.mapOver(Types.scala:3879)
at dotty.tools.dotc.typer.ProtoTypes$.wildApprox(ProtoTypes.scala:545)
at dotty.tools.dotc.typer.ProtoTypes$WildApproxMap.apply(ProtoTypes.scala:551)
at dotty.tools.dotc.core.Types$TypeMap.mapOver(Types.scala:3855)
at dotty.tools.dotc.typer.ProtoTypes$.wildApprox(ProtoTypes.scala:545)
<snipped>
scalac compiles but dotc crashes.
$ dotc -version
$ dotc abc.scala
$ cat abc.scala
The text was updated successfully, but these errors were encountered: