We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
(taken from tests/pos/i15922.scala in #15948)
tests/pos/i15922.scala
main
trait Cap: type M class Id[X] object Test: def withCap[X](op: Cap => X): X = ??? class retains1(xs: Any*) extends annotation.StaticAnnotation def leaking1(c: Cap): Id[Cap @retains1(c)] = ??? // used to crash with orphan parameter on pickling def leaking2(c: Cap): Id[c.type] = ??? val bad1 = withCap(leaking1) val bad2 = withCap(leaking2)
Pickling test fails with -Xprint-types -Ytest-pickler -Yprint-pos -Yprint-pos-syms.
-Xprint-types -Ytest-pickler -Yprint-pos -Yprint-pos-syms
It should pass the pickling test (i.e. the representation before and after pickling should be the same).
The text was updated successfully, but these errors were encountered:
Yes I agree. If we fix that then we can also drop the exclude for i15922.scala. It would be great if someone could take a closer look here.
Sorry, something went wrong.
could be a duplicate of #20272
No branches or pull requests
(taken from
tests/pos/i15922.scala
in #15948)Compiler version
main
Minimized code
Output
Pickling test fails with
-Xprint-types -Ytest-pickler -Yprint-pos -Yprint-pos-syms
.Expectation
It should pass the pickling test (i.e. the representation before and after pickling should be the same).
The text was updated successfully, but these errors were encountered: