This:
switch (if a then b else c)
when d
e()
is expected to become:
switch (a ? b : c) {
case d:
e();
break;
}
but instead gives you:
Unknown expression type: IfStatement
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/4150286-switch-doesn-t-work-with-the-ternary-operator?utm_campaign=plugin&utm_content=tracker%2F33145&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F33145&utm_medium=issues&utm_source=github).
This:
is expected to become:
but instead gives you:
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/4150286-switch-doesn-t-work-with-the-ternary-operator?utm_campaign=plugin&utm_content=tracker%2F33145&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F33145&utm_medium=issues&utm_source=github).Unknown expression type: IfStatement