Skip to content

StackOverflow in VarianceChecker #4370

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sir-wabbit opened this issue Apr 25, 2018 · 0 comments
Closed

StackOverflow in VarianceChecker #4370

sir-wabbit opened this issue Apr 25, 2018 · 0 comments

Comments

@sir-wabbit
Copy link

sir-wabbit commented Apr 25, 2018

object App {
  class Foo { type R = A }
  type A = List[Foo#R]
}
Exception in thread "main" java.lang.StackOverflowError
	at dotty.tools.dotc.typer.VarianceChecker$Validator$.$anonfun$apply$2(VarianceChecker.scala:85)
	at dotty.tools.dotc.reporting.trace$.op1$3(trace.scala:32)
	at dotty.tools.dotc.reporting.trace$.apply(trace.scala:33)
	at dotty.tools.dotc.reporting.trace$.apply(trace.scala:39)
	at dotty.tools.dotc.typer.VarianceChecker$Validator$.apply(VarianceChecker.scala:84)
	at dotty.tools.dotc.typer.VarianceChecker$Validator$.apply(VarianceChecker.scala:28)
	at dotty.tools.dotc.core.Types$TypeAccumulator.foldOver(Types.scala:4378)
	at dotty.tools.dotc.typer.VarianceChecker$Validator$.$anonfun$apply$2(VarianceChecker.scala:99)
	at dotty.tools.dotc.reporting.trace$.op1$3(trace.scala:32)
	at dotty.tools.dotc.reporting.trace$.apply(trace.scala:33)
	at dotty.tools.dotc.reporting.trace$.apply(trace.scala:39)
	at dotty.tools.dotc.typer.VarianceChecker$Validator$.apply(VarianceChecker.scala:84)
	at dotty.tools.dotc.typer.VarianceChecker$Validator$.apply(VarianceChecker.scala:28)
	at dotty.tools.dotc.core.Types$TypeAccumulator.foldArgs$1(Types.scala:4349)
	at dotty.tools.dotc.core.Types$TypeAccumulator.foldOver(Types.scala:4354)
	at dotty.tools.dotc.typer.VarianceChecker$Validator$.$anonfun$apply$2(VarianceChecker.scala:99)
	at dotty.tools.dotc.reporting.trace$.op1$3(trace.scala:32)
	at dotty.tools.dotc.reporting.trace$.apply(trace.scala:33)
	at dotty.tools.dotc.reporting.trace$.apply(trace.scala:39)
	at dotty.tools.dotc.typer.VarianceChecker$Validator$.apply(VarianceChecker.scala:84)
	at dotty.tools.dotc.typer.VarianceChecker$Validator$.$anonfun$apply$2(VarianceChecker.scala:90)
	at dotty.tools.dotc.reporting.trace$.op1$3(trace.scala:32)
	at dotty.tools.dotc.reporting.trace$.apply(trace.scala:33)
	at dotty.tools.dotc.reporting.trace$.apply(trace.scala:39)
	at dotty.tools.dotc.typer.VarianceChecker$Validator$.apply(VarianceChecker.scala:84)
	at dotty.tools.dotc.typer.VarianceChecker$Validator$.$anonfun$apply$2(VarianceChecker.scala:90)
	at dotty.tools.dotc.reporting.trace$.op1$3(trace.scala:32)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants