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:
Sheetal Nandi committed 2018-10-19 16:10:08 -07:00
1 parent 69b1cb5bac
commit 71d8961ba0
5 files changed
+90 -29

No files matched your search

@@ -0,0 +1,6 @@
interface I {
[index: number]: any;
someOtherProperty: number;
}
function f(args: ["a"] | I) { }
f(["a"]);