Closed juliankrispel closed 8 years ago
this
switch word when 'hello' a = 'boom' else a = 'bim'
compiles to this:
switch (word) { case "hello": var a = "boom"; break; default: a = "bim"; }
It should declare the variable in the scope of the switch statement, not in the case itself.
this
compiles to this:
It should declare the variable in the scope of the switch statement, not in the case itself.