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
Latest NIGHTLY.
import language.experimental.captureChecking import caps._ trait Foo extends Capability trait CaptureSet: type C <: CapSet^ def capturePoly[C^](x: Foo^{C^}): Foo^{C^} = x def capturePoly2(c: CaptureSet)(x: Foo^{c.C^}): Foo^{c.C^} = x def test = val x: Foo^ = ??? object X extends CaptureSet: type C = CapSet^{x} val y: Foo^{x} = capturePoly(x) // ok val z: Foo^{x} = capturePoly2(X)(x) // error
-- [E007] Type Mismatch Error: local/ccpaths.scala:19:35 ----------------------- 19 | val z: Foo^{x} = capturePoly2(X)(x) | ^ | Found: (x : Foo^) | Required: Foo^{c.C^} | | longer explanation available when compiling with `-explain`
It should be accepted.
The text was updated successfully, but these errors were encountered:
Fix #21868, #21869, and #21870: handle CapsOf in more places (#21875)
5d1d274
Fix #21868, #21869, and #21870
No branches or pull requests
Compiler version
Latest NIGHTLY.
Minimized code
Output
Expectation
It should be accepted.
The text was updated successfully, but these errors were encountered: