mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-18 16:34:36 -05:00
Do not do any reduction (even if it contains any) to the union type when getting contextual type
Fixes #27975
This commit is contained in:
6
tests/cases/compiler/unionTypeWithIndexAndTuple.ts
Normal file
6
tests/cases/compiler/unionTypeWithIndexAndTuple.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
interface I {
|
||||
[index: number]: any;
|
||||
someOtherProperty: number;
|
||||
}
|
||||
function f(args: ["a"] | I) { }
|
||||
f(["a"]);
|
||||
Reference in New Issue
Block a user