-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Type guard of Number.isNaN is wrong #12302
Copy link
Copy link
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue
Type
Fields
Give feedbackNo fields configured for issues without a type.
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.