Perltidy this code a bit.
[gitmo/Moose.git] / t / 100_bugs / 005_inline_reader_bug.t
CommitLineData
cecd110f 1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
6use Test::More tests => 2;
7use Test::Exception;
8
9BEGIN {
10 use_ok('Moose');
11}
12
13=pod
14
15This was a bug, but it is fixed now. This
16test makes sure it does not creep back in.
17
18=cut
19
20{
21 package Foo;
22 use Moose;
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