Skip to content

Commit

Permalink
Revert "Add :returns('Int') to the integer action, so that we get Int…
Browse files Browse the repository at this point in the history
…s instead of Integers."

"It just seems like we should be consistent (somewhat) and if most Int operations are going to return Integers, there's no sense in making one exception to the rule."

This reverts commit d71e295.
  • Loading branch information
colomon committed Feb 13, 2010
1 parent df72c91 commit da4a858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Actions.pm
Expand Up @@ -1683,7 +1683,7 @@ method number:sym<numish>($/) {
}

method numish($/) {
if $<integer> { make PAST::Val.new( :value($<integer>.ast), :returns('Int') ); }
if $<integer> { make PAST::Val.new( :value($<integer>.ast) ); }
elsif $<dec_number> { make $<dec_number>.ast; }
else {
make PAST::Var.new( :name(~$/), :namespace(''), :scope('package') );
Expand Down

0 comments on commit da4a858

Please sign in to comment.