1use strict;
2use warnings;
3
4use Test::More;
5use Test::Fatal;
6
7
8=pod
9
10This was a bug, but it is fixed now. This
11test makes sure it does not creep back in.
12
13=cut
14
15{
16    package Foo;
17    use Moose;
18
19    ::is( ::exception {
20        has 'bar' => (
21            is      => 'ro',
22            isa     => 'Int',
23            lazy    => 1,
24            default => 10,
25        );
26    }, undef, '... this didnt die' );
27}
28
29done_testing;
30