Skip to content
Browse files

Restore Int.Int behaviour, spotted by lucasb++

I think this warrant further discussion about what a coercer should do on
a type object in general.  I see a Failure as well as Nil as valid options
and not the type object itself.
  • Loading branch information...
lizmat committed Dec 28, 2018
1 parent 6af22bc commit 30a534d1cbc49c3e44c0b584912d6e38a4711da6
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/Int.pm6
@@ -46,7 +46,7 @@ my class Int does Real { # declared in BOOTSTRAP

method Capture() { die :what(self) }

method Int(--> Int:D) { self }
method Int(--> Int) { self }

multi method Str(Int:D: --> Str:D) {

0 comments on commit 30a534d

Please sign in to comment.
You can’t perform that action at this time.