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
Exception in thread "main" java.lang.StackOverflowError
at dotty.tools.dotc.ast.tpd$.localSyms(tpd.scala:20)
at dotty.tools.dotc.typer.TypeAssigner$$anonfun$avoidingType$1.apply(TypeAssigner.scala:133)
at dotty.tools.dotc.typer.TypeAssigner$$anonfun$avoidingType$1.apply(TypeAssigner.scala:133)
at dotty.tools.dotc.typer.TypeAssigner$$anon$2.forbidden$lzycompute(TypeAssigner.scala:54)
at dotty.tools.dotc.typer.TypeAssigner$$anon$2.forbidden(TypeAssigner.scala:54)
at dotty.tools.dotc.typer.TypeAssigner$$anon$2$$anonfun$toAvoid$1.apply(TypeAssigner.scala:59)
at dotty.tools.dotc.typer.TypeAssigner$$anon$2$$anonfun$toAvoid$1.apply(TypeAssigner.scala:58)
at dotty.tools.dotc.core.Types$ExistsAccumulator.apply(Types.scala:3735)
at dotty.tools.dotc.core.Types$Type.existsPart(Types.scala:236)
at dotty.tools.dotc.typer.TypeAssigner$$anon$2.toAvoid(TypeAssigner.scala:58)
at dotty.tools.dotc.typer.TypeAssigner$$anon$2.apply(TypeAssigner.scala:69)
at dotty.tools.dotc.core.Types$TypeMap.mapOver(Types.scala:3479)
at dotty.tools.dotc.typer.TypeAssigner$$anon$2.apply(TypeAssigner.scala:126)
at dotty.tools.dotc.typer.TypeAssigner$class.avoid(TypeAssigner.scala:129)
at dotty.tools.dotc.typer.Typer.avoid(Typer.scala:64)
at dotty.tools.dotc.typer.TypeAssigner$$anon$2.apply(TypeAssigner.scala:123)
at dotty.tools.dotc.core.Types$TypeMap.mapOver(Types.scala:3479)
at dotty.tools.dotc.typer.TypeAssigner$$anon$2.apply(TypeAssigner.scala:126)
...
The text was updated successfully, but these errors were encountered:
odersky
added a commit
to dotty-staging/dotty
that referenced
this issue
Jan 10, 2017
Before adding a constraint, make sure there is no way
the two types are already in a subtype relation.
Adding redundant constraints is problematic because we
might introduce cycles. See i1891.scala for a test.
The text was updated successfully, but these errors were encountered: