Closed bbrk24 closed 1 week ago
This works just fine:
switch x { a: /^(?:foo|bar)$/ } ;
This causes the compiler to crash with a TypeError:
switch x { 0: /^(?:foo|bar)$/ } ;
There is the question of how you'd access the value of x.0, since you can't name a variable 0. But we can at least test that it's there without binding it.
x.0
0
This works just fine:
This causes the compiler to crash with a TypeError:
There is the question of how you'd access the value of
x.0
, since you can't name a variable0
. But we can at least test that it's there without binding it.