Compiler cannot distinguish ==(x: T: MyTypes, y: T: MyTypes)
from system.==(x: T: tuple or object, y: T: tuple or object)
#16870
Labels
The compiler is unable to choose a proc with a generic type over the "more generic" type
object
. By changing some things in the comparison procs it is possible to compile. However, the compiler is expected to be smart enough to distinguish types.Example
Compile:
nim c bug.nim
Current Output
Expected Output
That compiles correctly
Possible Solution
object
Additional Information
The text was updated successfully, but these errors were encountered: