Open rdeits opened 7 years ago
There's no intentional reason why this couldn't be supported, but it may just be that we parse the unions before the types and then the types parser can't see inside the union. Not sure, but it should be fixable at any rate.
Ok, thanks! I think I may have a fix for this...
It appears that attempting to create an
@match
that uses unions and expression types results in no matches being found. A few examples:This works:
But adding a union gives no match:
Removing the
_ref
tag fixes it:Similarly, with a
_Symbol
tag, this works:and this doesn't:
Do unions just not support type restrictions?