-
Notifications
You must be signed in to change notification settings - Fork 181
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
Use of imported type/enum crashes the front end #1540
Comments
Maybe related error with use of my_lib.x: pub const W = s32:16;
pub type T = bits[W as u32]; my_test.x: import my_lib;
fn Bar () -> my_lib::T {
my_lib::T::MAX
} Repro (needs to be
Error message:
|
@cdleary it looks like PR #1548 fixes the first example in #1540 (comment). Thanks! We're working on landing it internally. The second example #1540 (comment) looks like it still fails. Also another example of use of imported types which fail is: my_enum.x pub enum MyEnum : bits[1] {
kA = 0,
kB = 1,
} my_param_proc.x
Repro: Making a type alias for Stack trace:
|
@richmckeever I assume I still have the assignment on this one? Can look at what's still failing if you confirm, thanks! |
@cdleary go for it. Rich is OOO. |
Towards google#1540 -- in particular fixes the example given in this comment: google#1540 (comment)
Towards google#1540 -- in particular fixes the example given in this comment: google#1540 (comment)
Repro:
my_enum.x:
my_lib.x:
my_top.x:
Building my_top:
Internally, repro is available at
experimental/users/meheff/xls/dslx_errors:my_top
The text was updated successfully, but these errors were encountered: