mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-14 07:02:44 -05:00
Added test case.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user