summaryrefslogtreecommitdiff
path: root/t/bugs/inline_reader_bug.t
blob: ef14f713f303081bcabd60fa4f3eddceae1c9b35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use strict;
use warnings;

use Test::More;
use Test::Fatal;


=pod

This was a bug, but it is fixed now. This
test makes sure it does not creep back in.

=cut

{
    package Foo;
    use Moose;

    ::is( ::exception {
        has 'bar' => (
            is      => 'ro',
            isa     => 'Int',
            lazy    => 1,
            default => 10,
        );
    }, undef, '... this didnt die' );
}

done_testing;