-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Orphan parameter reference in capture set #15922
Comments
Linyxus
added
itype:bug
stat:needs triage
Every issue needs to have an "area" and "itype" label
cc-experiment
Intended to be merged with cc-experiment branch on origin
and removed
stat:needs triage
Every issue needs to have an "area" and "itype" label
labels
Aug 26, 2022
Minimization without -Ycc: trait Cap
class Id[X]
object Test:
def withCap[X](op: Cap => X): X = ???
class retains1(xs: Any*) extends annotation.StaticAnnotation
def leaking(c: Cap): Id[Cap @retains1(c)] = ???
val bad = withCap(leaking) |
bishabosha
removed
the
cc-experiment
Intended to be merged with cc-experiment branch on origin
label
Sep 1, 2022
odersky
added a commit
to dotty-staging/dotty
that referenced
this issue
Sep 1, 2022
Avoids orphan parameters when pickling Fixes scala#15922 I am not sure about the status of the test in custome-args/captures. Should it pass or be rejected? But in any case it does not crash anymore.
Linyxus
added a commit
that referenced
this issue
Sep 3, 2022
Avoids orphan parameters when pickling Fixes #15922 I am not sure about the status of the test in custome-args/captures. Should it pass or be rejected? But in any case it does not crash anymore.
mpollmeier
pushed a commit
to mpollmeier/dotty
that referenced
this issue
Oct 16, 2022
Avoids orphan parameters when pickling Fixes scala#15922 I am not sure about the status of the test in custome-args/captures. Should it pass or be rejected? But in any case it does not crash anymore.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiler version
cc-experiment
Minimized code
Output
Expectation
It should not trigger
AssertionError
.The text was updated successfully, but these errors were encountered: