Type guard of Number.isNaN is wrong #12302
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Fixed
A PR has been merged for this issue
Milestone
TypeScript Version: 2.1 RC bundled in VS2017 RC
Code
Expected behavior: No error
Actual behavior: TS2356 An arithmetic operand must be of type 'any', 'number' or an enum type.
The text was updated successfully, but these errors were encountered: