You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm unable to do something with parametrics; I think it should be legal. As best as I can tell, the narrowest definition of the bug is: I can't use constexprs in a struct's parametric definitions.
Build and test the above. The error shows up during the test.
Error: INVALID_ARGUMENT: Cannot convert expression to parametric: SIGNED > u32:0================================================================================
Expected behavior
It should work, the test should pass.
Additional context
If you're wondering why I made SIGNED a u32 instead of bool, see this bug.
I find it strange that this error appears at test runtime instead of typechecking.
The text was updated successfully, but these errors were encountered:
dank-openai
changed the title
[DSLX] Cannot convert expression to parametric: SIGNED > u32:0
[DSLX] can't use parametric constexprs in struct definition
Jan 17, 2025
Describe the bug
I'm unable to do something with parametrics; I think it should be legal. As best as I can tell, the narrowest definition of the bug is: I can't use constexprs in a struct's parametric definitions.
To Reproduce
Build and test the above. The error shows up during the test.
Expected behavior
It should work, the test should pass.
Additional context
If you're wondering why I made SIGNED a u32 instead of bool, see this bug.
I find it strange that this error appears at test runtime instead of typechecking.
The text was updated successfully, but these errors were encountered: