Open marzipankaiser opened 2 months ago
I think we need to add the captures for block parameters here (not just the capabilities from effects), so we remove them in the result: https://github.com/effekt-lang/effekt/blob/e0e5c60e3fdda4dbc693207a776ae60f41b0d292/effekt/shared/src/main/scala/effekt/Typer.scala#L437-L445
Yes, that sounds about right
I'll mark this as a good first issue, since it's pretty understandable and the solution should be straightforward. However, if this actually blocks someone's flow, feel free to do it sooner/yourself without waiting for the Hackathon :)
In the following example, the captures are annotated as indicated in the comments:
Here, the capture for
x
containsb
, which is not even in scope outside of the definition offoo
. (This is also inconsistent with the captures offoof
).