Skip to content
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

Function label inference is buggy #371

Closed
cacay opened this issue Feb 21, 2022 · 0 comments · Fixed by #437
Closed

Function label inference is buggy #371

cacay opened this issue Feb 21, 2022 · 0 comments · Fixed by #437
Assignees
Labels
bug Something isn't working

Comments

@cacay
Copy link
Member

cacay commented Feb 21, 2022

The following program should type check but doesn't:

host alice: {A}
host bob: {B}

fun add{⊥<-}(a: int{A}, b: int{B}) {
    val c: int{a ⊔ b} = a + b;
}

fun main() {
   add(5, 10);
}
@cacay cacay added the bug Something isn't working label Feb 21, 2022
@cacay cacay linked a pull request Jul 6, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants