Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
check for "1" to mean truth in method can_meta
  • Loading branch information
FROGGS committed Apr 10, 2015
1 parent 5a38b21 commit 0b20921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Grammar.nqp
Expand Up @@ -3910,7 +3910,7 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
proto token prefix_postfix_meta_operator { <...> }

method can_meta($op, $meta, $reason = "fiddly") {
if $op<OPER><O>{$reason} {
if nqp::eqat($op<OPER><O>{$reason}, '1', 0) {
self.typed_panic: "X::Syntax::Can'tMeta", :$meta, operator => ~$op<OPER><sym>, dba => ~$op<OPER><O><dba>, reason => "too $reason";
}
self;
Expand Down

0 comments on commit 0b20921

Please sign in to comment.