Commit | Line | Data |
---|---|---|
86629f93 | 1 | #!/usr/bin/perl |
2 | ||
3 | use strict; | |
4 | use warnings; | |
5 | use Moose; | |
6 | ||
7 | use Test::More tests => 1; | |
8 | use Test::Exception; | |
9 | ||
10 | { | |
11 | package Foo; | |
12 | use Moose; | |
13 | has 'foo' => ( is => 'ro' ); | |
14 | } | |
15 | ||
16 | lives_ok { | |
17 | Foo->new(undef); | |
18 | } '... passing in undef just gets ignored'; | |
19 | ||
20 | ||
21 | ||
22 |