Skip to content

Commit

Permalink
Fix lowering if 'is required'.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jan 24, 2014
1 parent dc96308 commit 37f0403
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Perl6/Actions.nqp
Expand Up @@ -5760,9 +5760,10 @@ class Perl6::Actions is HLL::Actions does STDActions {
}
0
}
my $SIG_ELEM_IS_RW := 256;
my $SIG_ELEM_IS_COPY := 512;
my $SIG_ELEM_IS_PARCEL := 1024;
my $SIG_ELEM_IS_RW := 256;
my $SIG_ELEM_IS_COPY := 512;
my $SIG_ELEM_IS_PARCEL := 1024;
my $SIG_ELEM_IS_OPTIONAL := 2048;
sub lower_signature($block, $sig, @params) {
my @result;
my $clear_topic_bind;
Expand Down Expand Up @@ -5928,7 +5929,7 @@ class Perl6::Actions is HLL::Actions does STDActions {
}

# If it's optional, do any default handling.
if %info<optional> {
if $flags +& $SIG_ELEM_IS_OPTIONAL {
if nqp::existskey(%info, 'default_value') {
my $wval := QAST::WVal.new( :value(%info<default_value>) );
if %info<default_is_literal> {
Expand Down

0 comments on commit 37f0403

Please sign in to comment.