Tue Jun 23 09:23:08 2015andreas.mock [...] web.de - Ticket created
Subject:
Attribute declaration 'default' not accepting '0'
Date:
Tue, 23 Jun 2015 15:22:57 +0200
To:
<bug-Moo [...] rt.cpan.org>
From:
"Andreas Mock" <andreas.mock [...] web.de>
The following snippet causes an error and shows
therefore a different behaviour than Moose:
----------------8<---------------------
package MyObject;
use Moo;
has 'myattribute' => (
is => 'rw',
required => 1,
default => 0,
);
package main;
my $o = MyObject->new;
----------------8<---------------------
Best regards
Andreas
Sun Jun 28 07:56:11 2015haarg [...] haarg.org - Correspondence added
This has been fixed in the repo and will be included in the next release.
Sun Jun 28 07:56:12 2015The RT System itself - Status changed from 'new' to 'open'
Sun Jun 28 07:56:13 2015haarg [...] haarg.org - Status changed from 'open' to 'patched'