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
TypeScript error: src/monad/maybe.test.ts(102,9): Error TS2684: The 'this' context of type 'Maybe<(a: number) => number>' is not assignable to method's 'this' of type 'Maybe<(a: (a: number) => number, b: {}, c: {}, d: {}, e: {}) => number>'.
Type '(a: number) => number' is not assignable to type '(a: (a: number) => number, b: {}, c: {}, d: {}, e: {}) => number'.
Types of parameters 'a' and 'a' are incompatible.
Type '(a: number) => number' is not assignable to type 'number'.
Activity
falsandtru commentedon Aug 31, 2018
Looks like this bug is based on an explicit type inference bug of function arguments and type arguments:
(a: number) => numbercan't appear at the place of function argument type.Here is the definition at there:
ahejlsberg commentedon Sep 1, 2018
Fixed by #26820, no longer reproduces in master branch.