mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 02:33:53 -06:00
Added test case.
This commit is contained in:
parent
84a3252e76
commit
0d7a75edbb
@ -38,6 +38,7 @@ type C = { kind: 'c', foo: number };
|
||||
|
||||
declare let ab: A & B;
|
||||
ab.kind; // Error
|
||||
ab = 42;
|
||||
|
||||
declare let x: A | (B & C); // A
|
||||
let a: A = x;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user