Closed hmf closed 3 years ago
Your failing examples involve tp10
but you don't provide a definition for it. Nevertheless, I think there is no bug here: foo.type
is the singleton type of the value foo
, so it will be a subtype of the type of foo
but it's not equal to it since the type of foo
might contain other members, there is nothing specific to tuples here.
@smarter My apologies. All tp10
should be t40
(copy & paste error). Errors are the same. Ok, thank you for the explanation.
Minimized code
Output
Expectation
I expected equivalence to work on all summon. I detected this problem when trying to use
IsMappedBy
to check if all tuple members are numeric. This led to finding thatsummon[Tuple.Map[t40.type, NumericType] =:= t40.type]
also fails.