fix FOREIGNBUILDARGS not being called when no attributes created
[gitmo/Moo.git] / xt / lib / withautoclean / R1.pm
1 package withautoclean::R1;
2 use Moo::Role;
3
4 # Doing this (or loading a class which is built with Moose)
5 # and then loading autoclean - everything breaks...
6 use Moose ();
7 use namespace::autoclean;
8 # Wouldn't happen normally, but is likely to as you part-port something.
9
10 has _ctx => (
11     is => 'ro',
12     default => sub {
13     },
14     clearer => '_clear_ctx',
15 );
16
17 1;
18