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
regression: return is treated as a break in a breakable code #5612
Comments
Imported From: https://issues.scala-lang.org/browse/SI-5612?orig=1 |
@hubertp said: } catch {
case (ex @ (_: scala.runtime.NonLocalReturnControl[Foo.this._])) => if (ex.key().eq(nonLocalReturnKey1))
ex.value().asInstanceOf[Unit]()
else
throw ex
} vs the new one: } catch {
case (ex @ (_: scala.runtime.NonLocalReturnControl[Unit])) => if (ex.key().eq(nonLocalReturnKey1))
ex.value()
else
throw ex
} |
@paulp said: See 5af2bf54d2 and 3db29dde05 . The commit which caused it is 19a48510c . The "non-variable type argument" spurious warning is unrelated. |
@hubertp said: |
Richard Emberson (rmemberson) said: |
@SethTisue said: |
@paulp said: |
@paulp said: |
Reported by Richard Emberson on scala-user, minimized:
in 2.10.0-M2:
in latest nightly (a532ba):
compiles with warning:
output:
The text was updated successfully, but these errors were encountered: