Skip to content

Commit

Permalink
Make sure we type check default values. Note that we should really pr…
Browse files Browse the repository at this point in the history
…omote the one for literals to compile time.
  • Loading branch information
jnthn committed Oct 1, 2011
1 parent 464fb9f commit 2772e64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/binder/bind.c
Expand Up @@ -890,7 +890,7 @@ Rakudo_binding_bind(PARROT_INTERP, PMC *lexpad, PMC *sig_pmc, PMC *capture,
cur_bv.type = BIND_VAL_OBJ;
cur_bv.val.o = Rakudo_binding_handle_optional(interp, param, lexpad);
bind_fail = Rakudo_binding_bind_one_param(interp, lexpad, sig, param,
cur_bv, 1, error);
cur_bv, 0, error);
if (bind_fail)
return bind_fail;
}
Expand Down Expand Up @@ -928,7 +928,7 @@ Rakudo_binding_bind(PARROT_INTERP, PMC *lexpad, PMC *sig_pmc, PMC *capture,
cur_bv.type = BIND_VAL_OBJ;
cur_bv.val.o = Rakudo_binding_handle_optional(interp, param, lexpad);
bind_fail = Rakudo_binding_bind_one_param(interp, lexpad, sig, param,
cur_bv, 1, error);
cur_bv, 0, error);
}
else if (!suppress_arity_fail) {
if (error)
Expand Down

0 comments on commit 2772e64

Please sign in to comment.