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
Current version 3.6.4-RC1-bin-SNAPSHOT-nonbootstrapped-git-c933560
3.6.4-RC1-bin-SNAPSHOT-nonbootstrapped-git-c933560
import language.experimental.captureChecking import caps.* class IO class File(io: IO^) class Handler[C^]: def f(file: File^): File^{C^} = file // should be error! def g(file: File^{C^}): File^ = file // ok def test(io1: IO^, io2: IO^, h: Handler[CapSet^{io2}]) = val f1: File^{io1} = ??? val f2: File^{io2} = h.f(f1) // problem!
Compiled
Should reject f
f
The text was updated successfully, but these errors were encountered:
cc @odersky @Linyxus @bracevac
Sorry, something went wrong.
Fixing scala#22005
ba08501
Successfully merging a pull request may close this issue.
Compiler version
Current version
3.6.4-RC1-bin-SNAPSHOT-nonbootstrapped-git-c933560
Minimized code
Output
Compiled
Expectation
Should reject
f
The text was updated successfully, but these errors were encountered: