Skip to content

Commit 750b9da

Browse files
committed
Add test for RT #115726.
1 parent a0a80b7 commit 750b9da

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

S32-exceptions/misc.t

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,11 @@ throws_like '/m ** 1 ..2/', X::Syntax::Regex::SpacesInBareRange,
515515
pre => { m!'/m ** 1 ..'! },
516516
post => { m!'2/'! };
517517

518+
# RT #115726
519+
throws_like 'sub infix:<> (){}', X::Comp::Group,
520+
panic => { $_ ~~ X::Syntax::Extension::Null and .pre ~~ m/'sub infix:<> '/ and .post ~~ m/'()'/ },
521+
worries => { .[0].payload ~~ m/'Pair with <> really means an empty list, not null string; use :(\'\') to represent the null string,' \n ' or :() to represent the empty list more accurately'/ };
522+
518523
done;
519524

520525
# vim: ft=perl6

0 commit comments

Comments
 (0)