CC: Improve inference of functions (Typing boundary/break) #22481
Labels
area:experimental:cc
Capture checking related
cc-experiment
Intended to be merged with cc-experiment branch on origin
itype:bug
Compiler version
Latest nightly
Minimized code
With recent support for capture variables, abstract capture members and paths
in and to captures, we can obtain a reasonable signature for boundary/break
or similar delimiter pairs that prevent leaking inner labels,
using path-dependent types:
Output
In
test2
, we get an error:but we can make it work by explicitly annotating the expected capture set of the body:
Expectation
Ideally, inference of types/captures would correctly infer
CapSet^{f1}
The text was updated successfully, but these errors were encountered: