Skip to content

Commit

Permalink
Test for RT #132291
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterDuke17 committed Nov 3, 2017
1 parent fccc751 commit cd9f66e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion t/05-messages/02-errors.t
Expand Up @@ -2,11 +2,18 @@ use lib <t/packages/>;
use Test;
use Test::Helpers;

plan 1;
plan 2;

# RT #132295

is-run :2(1), :err{.contains: use 1.base(2) instead}, :status(* !== 0),
':2(1) suggests using 1.base(2)';

# RT #132291

throws-like { for [:a] X [:b] -> ($i, $j) { } },
Exception,
message => / '<anon>' /,
"anonymous subs get '<anon>' in arity error messages";

# vim: ft=perl6 expandtab sw=4

0 comments on commit cd9f66e

Please sign in to comment.