Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix default value check in moarvm binder, unbusts Rat.
  • Loading branch information
timo committed Jan 3, 2014
1 parent b7e8ae0 commit 7f8a180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Metamodel/BOOTSTRAP.nqp
Expand Up @@ -513,7 +513,7 @@ my class Binder {
}

# Do we have a default value or value closure?
elsif (my $default_value := nqp::getattr($param, Parameter, '$!default_value')) {
elsif !nqp::isnull(my $default_value := nqp::getattr($param, Parameter, '$!default_value')) {
if $flags +& $SIG_ELEM_DEFAULT_IS_LITERAL {
$default_value;
}
Expand Down

0 comments on commit 7f8a180

Please sign in to comment.