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
constchar="("asstring;// This works fine, char inside the if statements get's property narrowed to type "("if(char==='('){char;}// This doesn't work, char inside the case statement is of type stringswitch(true){casechar==='(':
char;}
🙁 Actual behavior
Char inside the case statement in a switch(true) has a type string
🙂 Expected behavior
It should have type "("
The text was updated successfully, but these errors were encountered:
Bug Report
🔎 Search Terms
🔗 Related issues
typeof
insideswitch (true)
does not work #37178switch (true)
case #8934Maybe these ones too
switch...case
#43873🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
Char inside the case statement in a
switch(true)
has a type string🙂 Expected behavior
It should have type
"("
The text was updated successfully, but these errors were encountered: