Skip to content

Commit

Permalink
Default parameter type should be passed on to sub-signatures.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jul 4, 2010
1 parent 4be0c42 commit c4b7cf4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Perl6/Compiler/Signature.pm
Expand Up @@ -326,6 +326,7 @@ method ast($low_level?) {
my $sub_sig := $null_reg;
if pir::defined__IP($_.sub_signature) {
$sub_sig := PAST::Stmts.new();
$_.sub_signature.set_default_parameter_type(self.get_default_parameter_type);
$sub_sig.push( $_.sub_signature.ast(1) );
$sub_sig.push( PAST::Var.new( :name('signature'), :scope('register') ) );
}
Expand Down

0 comments on commit c4b7cf4

Please sign in to comment.