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
and treat the parametric function invocation as 3 parameters to assert_eq
function_name < SOME_CONST: comparison between two scalar
some_module::SOME_CONST_STRUCT.some_field > (some_param, another_param): comparison between a scalar and a tuple
some_expected_result
The interpreter also throw:
`function_name` is parametric function, but it is not being invoked
or
TypeInferenceError: Cannot use operator `<` on functions
The text was updated successfully, but these errors were encountered:
proppy
added
bug
Something isn't working or is incorrect
dslx
DSLX (domain specific language) implementation / front-end
dslx:fmt
DSLX auto-formatter
labels
Mar 6, 2025
Describe the bug
It seems that the formatter (and possibly) the parser have issues resolving the ambiguities w/ nested parametrics function invocation.
To Reproduce
I've seen it w/
assert_eq
, ex:That get formatted as:
and treat the parametric function invocation as 3 parameters to
assert_eq
function_name < SOME_CONST
: comparison between two scalarsome_module::SOME_CONST_STRUCT.some_field > (some_param, another_param)
: comparison between a scalar and a tuplesome_expected_result
The interpreter also throw:
or
The text was updated successfully, but these errors were encountered: