Skip to content

Commit 6a244b9

Browse files
Added test.
1 parent b7881a2 commit 6a244b9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// @noEmit: true
2+
3+
export type Common = { test: true } | { test: false };
4+
export type A = Common & { foo: 1 };
5+
export type B = Common & { bar: 1 };
6+
7+
declare const a: A;
8+
declare let b: B;
9+
10+
b = a;

0 commit comments

Comments
 (0)