Open
Description
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:
assert_eq(function_name<SOME_CONST, some_module::SOME_CONST_STRUCT.some_field>(some_param, another_param), some_expected_result);
That get formatted as:
assert_eq(
function_name < SOME_CONST, some_module::SOME_CONST_STRUCT.some_field > (some_param, another_param),
some_expected_result);
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:
`function_name` is parametric function, but it is not being invoked
or
TypeInferenceError: Cannot use operator `<` on functions
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status