mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00: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:
@@ -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