From 076d9ad2ab208ae57d59c6ad17654dcaac375b0d Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Sun, 23 Jun 2019 09:19:56 -1000 Subject: [PATCH] Add regression test --- .../conformance/types/keyof/keyofAndIndexedAccess2.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/cases/conformance/types/keyof/keyofAndIndexedAccess2.ts b/tests/cases/conformance/types/keyof/keyofAndIndexedAccess2.ts index b242aa3de60..a86f4718e35 100644 --- a/tests/cases/conformance/types/keyof/keyofAndIndexedAccess2.ts +++ b/tests/cases/conformance/types/keyof/keyofAndIndexedAccess2.ts @@ -158,3 +158,12 @@ type Bar = { [key: string]: { [K in keyof T]: [K] }[keyof T] }; type Baz> = { [K in keyof Q]: T[Q[K]] }; type Qux> = { [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); + } +}