Skip to content

Commit 076d9ad

Browse files
committed
Add regression test
1 parent 762fff1 commit 076d9ad

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/cases/conformance/types/keyof/keyofAndIndexedAccess2.ts

+9
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,12 @@ type Bar<T> = { [key: string]: { [K in keyof T]: [K] }[keyof T] };
158158
type Baz<T, Q extends Foo<T>> = { [K in keyof Q]: T[Q[K]] };
159159

160160
type Qux<T, Q extends Bar<T>> = { [K in keyof Q]: T[Q[K]["0"]] };
161+
162+
// Repro from #32038
163+
164+
const actions = ['resizeTo', 'resizeBy'] as const;
165+
for (const action of actions) {
166+
window[action] = (x, y) => {
167+
window[action](x, y);
168+
}
169+
}

0 commit comments

Comments
 (0)