use strict;
use warnings;
-use Test::More tests => 18;
+use Test::More;
use Test::Exception;
-
{
package Foo;
use Moose;
-
+
has 'bar' => (is => 'rw', isa => 'ArrayRef | HashRef');
}
{
package Bar;
use Moose;
-
+
has 'baz' => (is => 'rw', isa => 'Str | CodeRef');
}
Bar->new(baz => {})
} '... didnt create a new Bar with baz as a HASH ref';
-
+done_testing;