Skip to content

Commit 626c4bd

Browse files
committed
Spec Whatever.ACCEPTS(Mu:U) gives True
Rakudo fix: rakudo/rakudo@89d85baa4b
1 parent a71839e commit 626c4bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

S02-types/whatever.t

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use lib 't/spec/packages';
55
use Test;
66
use Test::Util;
77

8-
plan 119;
8+
plan 120;
99

1010
# L<S02/The Whatever Object/"The * character as a standalone term captures the notion of">
1111
# L<S02/Native types/"If any native type is explicitly initialized to">
@@ -382,4 +382,6 @@ is-deeply try { (1,2,3).combinations(2..*) }, ((1, 2), (1, 3), (2, 3), (1, 2, 3)
382382
throws-like { use fatal; "a".map: *.Int }, X::Str::Numeric,
383383
'WhateverCode curry correctly propagates `use fatal` pragma';
384384

385+
is-deeply Mu ~~ (*), True, 'Mu:U smartmatches as True with Whatever';
386+
385387
# vim: ft=perl6

0 commit comments

Comments
 (0)