Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
make sure that ..., ??? and !!! pass Perl 6 strings to &fail, &warn, …
…&die

uvtc++ for discovering it
  • Loading branch information
moritz committed Aug 24, 2011
1 parent 54e85a2 commit 90e66fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Perl6/Actions.pm
Expand Up @@ -2328,15 +2328,15 @@ class Perl6::Actions is HLL::Actions {
}

method term:sym<...>($/) {
make PAST::Op.new( :pasttype('call'), :name('&fail'), 'Stub code executed', :node($/) );
make PAST::Op.new( :pasttype('call'), :name('&fail'), $*ST.add_constant('Str', 'str', 'Stub code executed'), :node($/) );
}

method term:sym<???>($/) {
make PAST::Op.new( :pasttype('call'), :name('&warn'), 'Stub code executed', :node($/) );
make PAST::Op.new( :pasttype('call'), :name('&warn'), $*ST.add_constant('Str', 'str', 'Stub code executed'), :node($/) );
}

method term:sym<!!!>($/) {
make PAST::Op.new( :pasttype('call'), :name('&die'), 'Stub code executed', :node($/) );
make PAST::Op.new( :pasttype('call'), :name('&die'), $*ST.add_constant('Str', 'str', 'Stub code executed'), :node($/) );
}

method term:sym<dotty>($/) {
Expand Down

0 comments on commit 90e66fb

Please sign in to comment.