From: Arthur Axel 'fREW' Schmidt Date: Thu, 26 Apr 2012 00:19:35 +0000 (-0500) Subject: demonstrate weird buildargs error X-Git-Tag: v0.091000~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f6f646d5c651ac656b50fbd2c3d5e90c3a53c0e3;p=gitmo%2FMoo.git demonstrate weird buildargs error --- diff --git a/t/buildargs-error.t b/t/buildargs-error.t new file mode 100644 index 0000000..85afbe8 --- /dev/null +++ b/t/buildargs-error.t @@ -0,0 +1,21 @@ +use strictures 1; +use Test::More; + +{ + package Foo; + use Moo; + + has bar => ( is => "rw" ); + has baz => ( is => "rw" ); + + sub BUILDARGS { + my ($self, $args) = @_; + + return %$args + } +} + +my $f = Foo->new({ bar => 1, baz => 1 }); + +done_testing; +