Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix up code generation for hides trait_mod.
  • Loading branch information
jnthn committed Aug 14, 2009
1 parent a0082a8 commit e5d0a37
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/parser/actions.pm
Expand Up @@ -978,6 +978,14 @@ method trait_mod($/) {
));
}
}
elsif $sym eq 'hides' {
my @name := Perl6::Compiler.parse_name(~$<module_name>);
$trait.push(PAST::Var.new(
:name(@name.pop),
:namespace(@name),
:scope('package')
));
}
else {
$trait.push( $<fulltypename>.ast );
}
Expand Down

0 comments on commit e5d0a37

Please sign in to comment.