roast
roast copied to clipboard
substitution in enum subscript is not tested
The following code works in Rakudo, is sensible but not tested.
enum E (A => "1");
my $v = "A";
put E::«$v»;
$v = "b";
put E::<<$v>> || "(Any)";