Skip to content

-Ycheck:labelDefs failure #747

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
odersky opened this issue Aug 5, 2015 · 0 comments
Closed

-Ycheck:labelDefs failure #747

odersky opened this issue Aug 5, 2015 · 0 comments

Comments

@odersky
Copy link
Contributor

odersky commented Aug 5, 2015

Doing

dotc pos/desugar.scala -Ycheck:labeLDefs

I get:

*** error while checking after phase labelDef ***
exception occurred while compiling desugar.scala
Exception in thread "main" java.lang.AssertionError: assertion failed: desugar$.desugar$fors$<local fors$>$$$anonfun$$init$$2 name is invalid on jvm
at scala.Predef$.assert(Predef.scala:165)
at dotty.tools.dotc.transform.TreeChecker$Checker$$anonfun$typedDefDef$1$$anonfun$apply$3.apply(TreeChecker.scala:285)
at dotty.tools.dotc.transform.TreeChecker$Checker$$anonfun$typedDefDef$1$$anonfun$apply$3.apply(TreeChecker.scala:284)

This also raises the question, why did the checkin tests not detect this? Mu local junit test in Eclipse
fails with the same error becuase -Ycheck:labelDefs is now on.

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

1 participant