import some (modified) MXMS tests
[p5sagit/Function-Parameters.git] / t / foreign / MooseX-Method-Signatures / lib / InvalidCase01.pm
CommitLineData
595edbcf 1package InvalidCase01;
2use strict;
3use warnings; no warnings 'syntax';
4use Function::Parameters qw(:strict);
5use Carp qw/croak/;
6
7method meth1{
8 croak "Binary operator $op expects 2 children, got " . $#$_
9 if @{$_} > 3;
10}
11
12method meth2{ {
13 "a" "b"
14}
15
16method meth3 {}
171;
18