-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
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
Incorrect captures for interface operations with block parameters #603
Comments
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: effekt/effekt/shared/src/main/scala/effekt/Typer.scala Lines 437 to 445 in e0e5c60
|
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. |
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 of
foof
).The text was updated successfully, but these errors were encountered: