X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=xt%2Flib%2FExampleMooRoleWithAttribute.pm;h=6306d117dda1cb13b6ae5a91209736680a59169b;hb=6c49212f407aeac8a2870b90600b36bc6639e89c;hp=a1f18841cfe80cc4d5b9f2cd75e6f8f096b8ba2a;hpb=087c79b5dee4047d9b96a52e52e55c2105e9c4c0;p=gitmo%2FMoo.git diff --git a/xt/lib/ExampleMooRoleWithAttribute.pm b/xt/lib/ExampleMooRoleWithAttribute.pm index a1f1884..6306d11 100644 --- a/xt/lib/ExampleMooRoleWithAttribute.pm +++ b/xt/lib/ExampleMooRoleWithAttribute.pm @@ -1,6 +1,9 @@ package ExampleMooRoleWithAttribute;; use Moo::Role; # Note that autoclean here is the key bit! +# It causes the metaclass to be loaded and used before the 'has' fires +# so Moo needs to blow it away again at that point so the attribute gets +# added use namespace::autoclean; has output_to => (