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

Sharing checks missing #473

Open
UnsignedByte opened this issue Oct 21, 2024 · 0 comments
Open

Sharing checks missing #473

UnsignedByte opened this issue Oct 21, 2024 · 0 comments

Comments

@UnsignedByte
Copy link
Collaborator

UnsignedByte commented Oct 21, 2024

Currently, the following program compiles just fine:

comp Foo<'G: 1>() -> () {}

comp Main<'G: 1>(
  go: interface['G],
) -> () {
  M := new Foo;
  m0 := M<'G>();
  m1 := M<'G>();
}

Whereas it shouldn't as M is invoked too often.

This seems like a much simpler example #76 that is still incorrectly passing.

@UnsignedByte UnsignedByte changed the title Sharing checks missing for II 1 Sharing checks missing Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant