Merge branch 'named-params'
[p5sagit/Function-Parameters.git] / t / foreign / Method-Signatures / odd_number.t
CommitLineData
98e6239b 1#!perl
2
3package Foo;
4use warnings FATAL => 'all';
5use strict;
6
7use Test::More tests => 1;
8use Test::Fatal;
9
10use Function::Parameters qw(:strict);
11
12method foo(:$name, :$value) {
13 return $name, $value;
14}
15
16like exception { Foo->foo(name => 42, value =>) }, qr/Not enough arguments/;