Skip to content

Commit

Permalink
Fix :foo and :!foo breakage spotted by moritz++.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jun 24, 2011
1 parent 067b038 commit 7963293
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Perl6/Actions.pm
Expand Up @@ -727,10 +727,10 @@ class Perl6::Actions is HLL::Actions {
make make_pair($*key, $*value.ast);
}
elsif $*value == 0 {
make make_pair($*key, PAST::Var.new( :name('False'), :namespace('Bool'), :scope('package') ));
make make_pair($*key, PAST::Op.new( :pirop('perl6_booleanize PI'), 0 ));
}
else {
make make_pair($*key, PAST::Var.new( :name('True'), :namespace('Bool'), :scope('package') ));
make make_pair($*key, PAST::Op.new( :pirop('perl6_booleanize PI'), 1 ));
}
}
elsif $<fakesignature> {
Expand Down

0 comments on commit 7963293

Please sign in to comment.