MooseX-MultiMethods

 view release on metacpan or  search on metacpan

t/fail.t  view on Meta::CPAN

use strict;
use warnings;
use Test::More tests => 1;
use Test::Exception;

{
    package Foo;
    use Moose;
    use MooseX::MultiMethods;
    multi method bar (Int $x, Num $y) {}
    multi method bar (Num $x, Int $y) {}
}

my $foo = Foo->new;
dies_ok(sub {
    $foo->bar(23, 42);
});



( run in 1.079 second using v1.01-cache-2.11-cpan-e86d8f7595a )