mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-15 14:05:47 -05:00
Added test.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// @noEmit: true
|
||||
|
||||
export type Common = { test: true } | { test: false };
|
||||
export type A = Common & { foo: 1 };
|
||||
export type B = Common & { bar: 1 };
|
||||
|
||||
declare const a: A;
|
||||
declare let b: B;
|
||||
|
||||
b = a;
|
||||
Reference in New Issue
Block a user