Operator overloading without implementing the respective trait #3820
Labels
A-type-system
Area: Type system
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Milestone
Apparently it is enough to write an anonymous implementation with the correct function name and signature to get the compiler to spit out operator overloading:
This is probably not intended? And it leads to nasty ICEs when the function name fits, but the function signature doesn't (eg.
pure fn mul(c: int) -> Thing
, no reference).The text was updated successfully, but these errors were encountered: