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

Veryl compiler accepts using a period to access the variant of an enum #702

Open
puppuccino opened this issue May 7, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@puppuccino
Copy link

I noticed that Veryl compiler accepts using a period instead of double colon to access the variant of an enum, which it shouldn't.

package foobar_pkg {

    enum FooBar: logic {
        Foo,
        Bar,
    }
}

module module_a (
    i: input  foobar_pkg::FooBar,
    o: output logic             ,
) {
    import foobar_pkg::FooBar;
    assign o = case i {
        FooBar.Foo: 1'b0,
        FooBar.Bar: 1'b1,
        default   : 1'bz,
    };
}
@dalance dalance added the bug Something isn't working label May 8, 2024
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

No branches or pull requests

2 participants