File: fail.t

package info (click to toggle)
libmoosex-multimethods-perl 0.10-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 148 kB
  • sloc: perl: 179; makefile: 7
file content (17 lines) | stat: -rw-r--r-- 285 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);
});