mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Add regression test
This commit is contained in:
@@ -158,3 +158,12 @@ type Bar<T> = { [key: string]: { [K in keyof T]: [K] }[keyof T] };
|
||||
type Baz<T, Q extends Foo<T>> = { [K in keyof Q]: T[Q[K]] };
|
||||
|
||||
type Qux<T, Q extends Bar<T>> = { [K in keyof Q]: T[Q[K]["0"]] };
|
||||
|
||||
// Repro from #32038
|
||||
|
||||
const actions = ['resizeTo', 'resizeBy'] as const;
|
||||
for (const action of actions) {
|
||||
window[action] = (x, y) => {
|
||||
window[action](x, y);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user