Mouse::Util::does_role() respects $thing->does() method
[gitmo/Mouse.git] / t / 100_bugs / 005_inline_reader_bug.t
1 #!/usr/bin/perl
2 # This is automatically generated by author/import-moose-test.pl.
3 # DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
4 use t::lib::MooseCompat;
5
6 use strict;
7 use warnings;
8
9 use Test::More;
10 use Test::Exception;
11
12
13 =pod
14
15 This was a bug, but it is fixed now. This
16 test makes sure it does not creep back in.
17
18 =cut
19
20 {
21     package Foo;
22     use Mouse;
23
24     ::lives_ok {
25         has 'bar' => (
26             is      => 'ro',
27             isa     => 'Int',
28             lazy    => 1,
29             default => 10,
30         );
31     } '... this didnt die';
32 }
33
34 done_testing;