Skip to content

Commit

Permalink
Fix one half of what is reported in RT#65128 - our T1 T2 sub f() { ..…
Browse files Browse the repository at this point in the history
…. } now gives a compile time error like STD.
  • Loading branch information
jnthn committed Jun 5, 2009
1 parent 10a9b23 commit 636a2b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/parser/actions.pm
Expand Up @@ -1865,6 +1865,9 @@ method scoped($/) {
}
}
elsif $past.isa(PAST::Block) && $<fulltypename> {
if +$<fulltypename> > 1 {
$/.panic("Multiple prefix constraints not yet supported");
}
$past.loadinit().push(PAST::Op.new(
:pasttype('call'),
:name('!sub_trait_verb'),
Expand Down

0 comments on commit 636a2b6

Please sign in to comment.