Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
enable calling a fully qualified enum key
  • Loading branch information
moritz committed May 16, 2010
1 parent 32150d5 commit 87e0e1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Perl6/Actions.pm
Expand Up @@ -1378,6 +1378,7 @@ method type_declarator:sym<enum>($/) {
$/.CURSOR.add_name(~$<name>[0]);
for $result {
$/.CURSOR.add_name(~$_.key);
$/.CURSOR.add_name(~$<name>[0] ~ '::' ~ ~$_.key);
}

# Emit code to set up named enum.
Expand Down

0 comments on commit 87e0e1b

Please sign in to comment.