Skip to content

Commit b428149

Browse files
committed
RT #77582, error message when method is not found on a Hash
1 parent 0093451 commit b428149

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

S32-exceptions/misc.t

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ throws_like 'my class Priv { method x { self!foo } }; Priv.x',
211211
method => '!foo',
212212
typename => 'Priv',
213213
private => { $_ === True };
214+
# RT #77582
215+
throws_like 'my %h; %h.nosuchmethods', X::Method::NotFound, typename => 'Hash';
216+
214217
throws_like '1.List::join', X::Method::InvalidQualifier,
215218
method => 'join',
216219
invocant => 1,

0 commit comments

Comments
 (0)