Skip to content

Commit

Permalink
Test Pair.new does not give error from Mu.new
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed May 21, 2017
1 parent b1bf692 commit a523aef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion S02-types/pair.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 4 * 19 + 106;
plan 4 * 19 + 107;

# L<S02/Mutable types/A single key-to-value association>
# basic Pair
Expand Down Expand Up @@ -412,4 +412,8 @@ subtest 'Pair.ACCEPTS' => {
is-deeply :bar .ACCEPTS(Foo), False, 'custom class (False)';
}

# RT#131339
throws-like { Pair.new: <foo bar ber meow>, <meows>, 42 }, X::Multi::NoMatch,
'Pair.new with wrong args does not go to Mu.new';

# vim: ft=perl6

0 comments on commit a523aef

Please sign in to comment.