You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// A self-contained demonstration of the problem follows...classFoo{identity<T>(x: T): T{returnx}compose<A,B,C>(f: (b: B)=>C,g: (a: A)=>B) : (a:A)=>C{return(a: A)=>f(g(a))}constructor(){letvalue=this.compose((a : number)=>a,this.identity)}}
Expected behavior:
value should have type (a: number) => number
OR
it should issue an error as the tsconfig.json has "noImplicitAny" defined to true.
Actual behavior:
value has type (a: {}) => number
AND
no error from the compiler.
The text was updated successfully, but these errors were encountered:
TypeScript Version: 1.9.0-dev.20160523-1.0
Code
Expected behavior:
value should have type (a: number) => number
OR
it should issue an error as the tsconfig.json has "noImplicitAny" defined to true.
Actual behavior:
value has type (a: {}) => number
AND
no error from the compiler.
The text was updated successfully, but these errors were encountered: