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

Verify that all non-storage types work for pub vars #914

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

lethalgem
Copy link
Contributor

@lethalgem lethalgem commented Oct 9, 2024

Staying in DRAFT:

  • PR may not apply if we decide to remove pub vars. TBD

Closes #861

Note:
Type Aliases for Unions currently don't work This is known and in progress

union A = a(int) | b | c(bool) | d(b256) | e({int, int}) | f(int[2]);
type NewAlias = A;

predicate Simple {
    pub var a: NewAlias;

    constraint a == NewAlias::a(3);
}

Error: unknown union
    ╭─[test.pnt:24:21]
    │
 24 │     constraint a == NewAlias::a(3);
    │                     ─────┬─────  
    │                          ╰─────── union declaration for `::NewAlias::a` not found
────╯

@lethalgem lethalgem self-assigned this Oct 9, 2024
@lethalgem lethalgem changed the title Ian/861 Verify that all non-storage types work for pub vars Oct 9, 2024
@lethalgem lethalgem changed the title Verify that all non-storage types work for pub vars Verify that all non-storage types work for pub vars Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Verify that all non-storage types work for pub vars
1 participant