Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add multiple prefix constraint check, as done by STD.pm.
  • Loading branch information
jnthn committed Apr 9, 2009
1 parent 4866942 commit 4cc08e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/parser/actions.pm
Expand Up @@ -1307,6 +1307,9 @@ method parameter($/) {
my $typelist := PAST::Op.new( :name('all'), :pasttype('call') );
$var<type> := $typelist;
if $<type_constraint> {
if $<type_constraint> != 1 {
$/.panic("Multiple prefix constraints not yet supported");
}
for @($<type_constraint>) {
my $type_past := $( $_ );
if $type_past.isa(PAST::Var) && $type_past.scope() eq 'lexical' {
Expand Down

0 comments on commit 4cc08e8

Please sign in to comment.