Skip to content

Commit

Permalink
Give Int a constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Jun 27, 2015
1 parent acaeb17 commit 243e400
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/Int.pm
Expand Up @@ -17,6 +17,9 @@ my class Int does Real { # declared in BOOTSTRAP
ObjAt
);
}
method new($value) {
nqp::box_i($value, self.WHAT);
}
multi method perl(Int:D:) {
self.Str;
}
Expand Down

0 comments on commit 243e400

Please sign in to comment.