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
Spurious "unreachable code" warning with confused prefixes #9220
Comments
Imported From: https://issues.scala-lang.org/browse/SI-9220?orig=1 |
@retronym said:
|
This issue seams to be fixed in 2.12. |
I'm unable to reproduce it in 2.10 or 2.11 either, though. That has me wondering if some special compiler flag is required, or what. (I do have |
@SethTisue Strange, I can reproduce it without any special flags in every version I tried except for 2.12.x |
oh, never mind, I can reproduce it with Jason's version of the code. |
and yup, fixed in 2.12 |
Add regression test for scala/bug#9220
The following,
results in the following spurious unreachable code warning,
Unnesting the
Execution
trait from theCommand
companion object results in compilation without the complaint.The text was updated successfully, but these errors were encountered: