You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importlanguage.experimental.captureCheckingimportcaps._traitFooextendsCapabilitytraitCaptureSet:typeC<:CapSet^deftest=valx:Foo^=???objectXextendsCaptureSet:typeC=CapSet^{x}
valy:Foo^{X.C^} = x // error
Output
--Error: local/ccpaths.scala:70:15--------------------------------------------70|valu:Foo^{X.C^} = x
|^^^^|X.C is not a legal prefix for `^` here,
|is must be a typeparameter or abstracttypewith a caps.CapSet upper bound.
Expectation
It should be accepted (+ the error message has a typo).
The text was updated successfully, but these errors were encountered:
Compiler version
Latest NIGHTLY
Minimized code
Output
Expectation
It should be accepted (+ the error message has a typo).
The text was updated successfully, but these errors were encountered: