Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed #75114: Can't augment class Int
Signed-off-by: Moritz Lenz <moritz@faui2k3.org>
  • Loading branch information
Jimmy Zhuo authored and moritz committed Jun 3, 2010
1 parent 2242efb commit a0b6d74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Perl6/Actions.pm
Expand Up @@ -2297,7 +2297,7 @@ method number:sym<numish>($/) {
}

method numish($/) {
if $<integer> { make PAST::Val.new( :value($<integer>.ast) ); }
if $<integer> { make PAST::Val.new( :value($<integer>.ast), :returns('Int') ); }
elsif $<dec_number> { make $<dec_number>.ast; }
elsif $<rad_number> { make $<rad_number>.ast; }
else {
Expand Down Expand Up @@ -2508,7 +2508,7 @@ method quote_EXPR($/) {
$past := PAST::Stmts.new($past);
}
else {
$past := PAST::Val.new(:value(~@words[0]), :returns<Str>);
$past := PAST::Val.new( :value(~@words[0]), :returns('Str') );
}
}
}
Expand Down

0 comments on commit a0b6d74

Please sign in to comment.