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
// We can quickly address your report if:// - The code sample is short. Nearly all TypeScript bugs can be demonstrated in 20-30 lines of code!// - It doesn't use external libraries. These are often issues with the type definitions rather than TypeScript bugs.// - The incorrectness of the behavior is readily apparent from reading the sample.// Reports are slower to investigate if:// - We have to pare too much extraneous code.// - We have to clone a large repo and validate that the problem isn't elsewhere.// - The sample is confusing or doesn't clearly demonstrate what's wrong.
// TS2367 (wrong) errorconsole.log('401'==401)
🙁 Actual behavior
compiler says it is always false like if it was with triple equals, instead is true with double equal.
🙂 Expected behavior
well it should not report the error in this case
The text was updated successfully, but these errors were encountered:
Bug Report
🔎 Search Terms
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
https://www.typescriptlang.org/play?&msclkid=9d535d68d12a11ecae6af6576a43aaf2#code/MYewdgzgLgBAljAvDA5AFgAwEYVOZrAKFEhABsBTAOjJAHMAKOASiA
💻 Code
🙁 Actual behavior
compiler says it is always false like if it was with triple equals, instead is true with double equal.
🙂 Expected behavior
well it should not report the error in this case
The text was updated successfully, but these errors were encountered: