Moose now warns when you try to load it from the main package. Added a
[gitmo/Moose.git] / t / 100_bugs / 008_new_w_undef.t
CommitLineData
86629f93 1#!/usr/bin/perl
2
3use strict;
4use warnings;
86629f93 5
6use Test::More tests => 1;
7use Test::Exception;
8
9{
10 package Foo;
11 use Moose;
12 has 'foo' => ( is => 'ro' );
13}
14
15lives_ok {
16 Foo->new(undef);
17} '... passing in undef just gets ignored';
18
19
20
21