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
Because it is not a type alias, but a declaration of a new type. If you have two named types, they can only be explicitly converted to each other: mymod.f([]mymod.s64(xs)).
However, I see an issue with the confusing error message that lacks the module qualifier.
vtereshkov
changed the title
Incompatible type error for the same type alias
Confusing error message for incompatible types having the same name
Jan 31, 2024
mymod.um
:main.um
Moving function
f
and type aliass64
frommain.um
to a separate module (mymod.um
) results in a type error.The text was updated successfully, but these errors were encountered: