Open kevinbarabash opened 2 months ago
This is so that we can mutate discriminated unions, e.g.
declare let mut foo: { type: "a", v: number } | {type: "b", v: string }; match foo { {type: "a"} as foo => foo.v = 5, {type: "b"} as foo => foo.v = "hello", };
This is so that we can mutate discriminated unions, e.g.