Skip to content

Regression in staging level checks #4396

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 Apr 27, 2018 · 0 comments
Closed

Regression in staging level checks #4396

nicolasstucki opened this issue Apr 27, 2018 · 0 comments

Comments

@nicolasstucki
Copy link
Contributor

Since #4363, the following two cases break

39 |    '(Option(4) match { case Some(a) => a; case None => 1 }),
   |                                        ^
   |                                        access to value a from wrong staging level:
   |                                         - the definition is at level 0,
   |                                         - but the access is at level 1.
39 |    '{ case class Foo() },
   |                       ^
   |                       access to package _root_ from wrong staging level:
   |                        - the definition is at level 0,
   |                        - but the access is at level 1.
nicolasstucki added a commit to dotty-staging/dotty that referenced this issue Apr 27, 2018
nicolasstucki added a commit to dotty-staging/dotty that referenced this issue Apr 27, 2018
biboudis pushed a commit that referenced this issue May 1, 2018
Fix #4396: Check level of owners of type parameters
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