I would consider that adding an intersection type like Tenums & 'a' would be the same of having one variable of type 'a'. Probably this is expected but could anyone explain the reasoning behind this?
Replacing TmoreEnums by 'a' in the function definition would make it pass. And not calling the function would make it pass too.
Hi, I don't understand why this is not type-checking. Tried in Stackoverflow without any luck. Would appreciate any help with this:
Try
I would consider that adding an intersection type like
Tenums & 'a'
would be the same of having one variable of type'a'
. Probably this is expected but could anyone explain the reasoning behind this?Replacing
TmoreEnums
by'a'
in the function definition would make it pass. And not calling the function would make it pass too.Thanks a lot for this great tool.