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
This condition will always return 'false' since the types 'number' and 'bigint' have no overlap.
which is not the case. The spec for bigint, which states that an expression like 1n == 1 would
be true since, conceptually, 1 and 1n are the same value.
🔎 Search Terms
number, bigint, loose equals
💻 Code
console.log(1==1n);
🙁 Actual behavior
This creates an error at compile time since tsc thinks that 1 == 1n will never be true, which is simply not the case.
The text was updated successfully, but these errors were encountered:
Bug Report
Currently, tsc sees this as an error stating
🔎 Search Terms
number, bigint, loose equals
💻 Code
🙁 Actual behavior
This creates an error at compile time since tsc thinks that
1 == 1n
will never be true, which is simply not the case.The text was updated successfully, but these errors were encountered: