Skip to content
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

Forward reference #480

Closed
jad-hamza opened this issue May 3, 2019 · 0 comments · Fixed by #1410
Closed

Forward reference #480

jad-hamza opened this issue May 3, 2019 · 0 comments · Fixed by #1410

Comments

@jad-hamza
Copy link
Contributor

Stainless doesn't report properly expressions that refer to val's which are defined after. Is this due to the fact that we don't run the full scalac pipeline? On that file, scalac gives the error:

error: forward reference extends over definition of value y

object ValSwap {
  def f() = {
    val y = x
    val x = 0
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants