Say I have a class named myClass (how clever!) with the following Operator_Convert
Operator_convert( value as Pair )
If I try to pass a Variant containing a Pair object, I get an IllegalCastException at runtime (Xojo 2019r1, macOS 10.14.4). So I have added another Operator_Convert:
Operator_convert( value as Variant )
but now, If I try to pass a Pair (not in a Variant), the compiler complains "There is more than one item with this name and it's not clear to which this refers."
So I removed the first Operator_Convert( value as Pair ) and, strangely, it works if I pass a Pair but not if I pass a Pair inside a Variant (IllegalCastException: Pair cannot be cast to myClass) even if the method expects a Variant.
I am forgetting something?