TypeScript Version:
master
Code
functionf<Textendsstring[]|{}>(a: T){if(ainstanceofArray){a=a;}}Expected behavior:
$ node built/local/tsc.js index.ts
Actual behavior:
$ node built/local/tsc.js index.ts
index.ts(3,5): error TS2322: Type 'any[]' is not assignable to type 'T'.
TypeScript Version:
master
Code
Expected behavior:
Actual behavior: