Skip to content

Commit b630ee3

Browse files
committed
Add test for RT#118717 which can probably be closed
1 parent f8b1530 commit b630ee3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

S02-types/nil.t

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use Test;
33

44
# Nil may be a type now. Required?
55

6-
plan 51;
6+
plan 52;
77

88
sub empty_sub {}
99
sub empty_do { do {} }
@@ -48,6 +48,9 @@ ok Nil.JustAnyMethod == Nil, 'Any method on Nil should return Nil';
4848
is $x, 1, '$Statement for Nil; does one iteration';
4949
}
5050

51+
# RT #118717
52+
ok Nil.^mro.gist !~~ rx:i/iter/, "Nil is not any sort of Iter*";
53+
5154
# RT 93980
5255
ok (my $rt93980 = Nil) === Any, 'Nil assigned to scalar produces an Any'; #OK
5356

0 commit comments

Comments
 (0)