Skip to content

Commit 182e758

Browse files
committed
test for RT #76584, return value of .can should stringify
1 parent 66e07a4 commit 182e758

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

S12-introspection/can.t

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Tests for can.
88
99
=end pod
1010

11-
plan 23;
11+
plan 24;
1212

1313
# L<S12/"Introspection"/Unlike in Perl 5 where .can returns a single Code object>
1414

@@ -97,4 +97,7 @@ my $pup = Puppy.new();
9797
is $found, "yapbow", "subclass got right methods called (on proto)";
9898
}
9999

100+
# RT #76584
101+
ok Str.can('split') ~~ /split/, 'return value of .can stringifies sensibly';
102+
100103
# vim: ft=perl6

0 commit comments

Comments
 (0)