Skip to content

Commit bb37a61

Browse files
committed
Add regression test
1 parent a437c0a commit bb37a61

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

tests/cases/conformance/types/mapped/mappedTypes4.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,15 @@ type DeepReadonlyFoo = {
5959
};
6060

6161
var x1: DeepReadonly<Foo>;
62-
var x1: DeepReadonlyFoo;
62+
var x1: DeepReadonlyFoo;
63+
64+
// Repro from #13232
65+
66+
type Z = { a: number };
67+
type Clone<T> = {
68+
[P in keyof (T & {})]: T[P];
69+
};
70+
type M = Clone<Z>; // M should be { a: number }
71+
72+
var z1: Z;
73+
var z1: Clone<Z>;

0 commit comments

Comments
 (0)