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
enumAEnum{A=1,B=2}exportclassA{a=AEnum.A;asyncfunc(){this.a=AEnum.A;constf=async()=>{this.a=AEnum.B;}awaitf();if(this.a===AEnum.B){// Error: This condition will always return 'false' since the types 'AEnum.A' and 'AEnum.B' have no overlap.(2367)console.log(333);}}}
🙁 Actual behavior
Error
🙂 Expected behavior
Success
The text was updated successfully, but these errors were encountered:
Bug Report
🔎 Search Terms
typescript enum no overleap.
typescript enum async no overleap.
typescript enum no overleap with async.
typescript enum no overleap promise
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
Error
🙂 Expected behavior
Success
The text was updated successfully, but these errors were encountered: