Skip to content

Not checking level of binding in cases #4890

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
nicolasstucki opened this issue Aug 4, 2018 · 0 comments
Closed

Not checking level of binding in cases #4890

nicolasstucki opened this issue Aug 4, 2018 · 0 comments

Comments

@nicolasstucki
Copy link
Contributor

def toExpr(x: Option[String]): Expr[String] = x match {
  case Some(s) => '(s)  // `s` is used at wrog staging level
}

Should emit the error but currently crashes when trying to pickle.

nicolasstucki added a commit that referenced this issue Aug 28, 2018
Fix #4890: Mark level of pattern bindings
Duhemm pushed a commit to dotty-staging/dotty that referenced this issue Aug 30, 2018
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