Closed kevinbarabash closed 3 months ago
I added the following test case and it seems to work:
declare let value: {a: [number] | {x: number}} | {b: [number] | {y: number}};
let result = match value {
{a: [x]} => x,
{a: {x}} => x,
{b: [y]} => y,
{b: {y}} => y,
};
Can we pattern match on something like: