Add a test for attribute conflict when composing one role into another
[gitmo/Moose.git] / t / 100_bugs / 005_inline_reader_bug.t
CommitLineData
cecd110f 1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
a28e50e4 6use Test::More;
cecd110f 7use Test::Exception;
8
7ff56534 9
cecd110f 10=pod
11
d03bd989 12This was a bug, but it is fixed now. This
cecd110f 13test makes sure it does not creep back in.
14
15=cut
16
17{
18 package Foo;
19 use Moose;
d03bd989 20
cecd110f 21 ::lives_ok {
22 has 'bar' => (
d03bd989 23 is => 'ro',
cecd110f 24 isa => 'Int',
25 lazy => 1,
26 default => 10,
27 );
28 } '... this didnt die';
29}
d03bd989 30
a28e50e4 31done_testing;