Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #451 from usev6/int_constructor
Change constructor for Int to 'multi method'
  • Loading branch information
lizmat committed Jun 28, 2015
2 parents d0176db + 63be88f commit 8e82716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Int.pm
Expand Up @@ -17,7 +17,7 @@ my class Int does Real { # declared in BOOTSTRAP
ObjAt
);
}
method new($value) {
multi method new($value) {
nqp::box_i($value, self.WHAT);
}
multi method perl(Int:D:) {
Expand Down

0 comments on commit 8e82716

Please sign in to comment.