-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #450, check conjunctiveness when splitting
Before this commit, there was a bug when checking of whether an unpack was allowed that lead to code like `let read Get, linear Set = consume Cell` compiling. This is now fixed so that all types in an unpack needs to be separated by a conjunction in the capability being unpacked, unless all the types can safely be (at least locally) aliased. A known bug is that we also need to check that the modes are preserved for all types in an upcast, meaning that the `read Get` above should also be `linear` (assuming `Get` and `Set` are conjunctive in `Cell`).
- Loading branch information
Showing
3 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters