Skip to content
Permalink
Browse files

Make sure Code.cando has the same return type as Routine.cando

Even though it will always be either a zero or 1 element list
  • Loading branch information...
lizmat committed Oct 24, 2018
1 parent a434a18 commit 69533b5064eca5d0a5969ce565b33cb062232a83
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/Code.pm6
@@ -13,7 +13,7 @@ my class Code does Callable { # declared in BOOTSTRAP
method count(Code:D:) { nqp::getattr($!signature,Signature,'$!count') }

method signature(Code:D:) { $!signature }
method cando(Capture:D $c) { $!signature.ACCEPTS($c) }
method cando(Capture:D $c) { $!signature.ACCEPTS($c) ?? (self,) !! () }

proto method prec(|) {*}
multi method prec() { my % }

0 comments on commit 69533b5

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