We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
3.nightly (3.7.2-RC1-bin-20250520-baac46c-NIGHTLY)
import language.experimental.captureChecking import caps.* class A: def a: A = this class B extends A, Capability def leak(b: B): A = b.a
Run: scala compile --server=false -S 3.nightly Stest.scala
scala compile --server=false -S 3.nightly Stest.scala
Compile success.
Reject, as we treat B as impure, and it should fail on inheritance check (maybe by checkSelfAgainstParents)
checkSelfAgainstParents
The text was updated successfully, but these errors were encountered:
noti0na1
Successfully merging a pull request may close this issue.
Compiler version
3.nightly (3.7.2-RC1-bin-20250520-baac46c-NIGHTLY)
Minimized code
Output
Run:
scala compile --server=false -S 3.nightly Stest.scala
Compile success.
Expectation
Reject, as we treat B as impure, and it should fail on inheritance check (maybe by
checkSelfAgainstParents
)The text was updated successfully, but these errors were encountered: