Skip Menu |

This queue is for tickets about the Moo CPAN distribution.

Report information
The Basics
Id: 105424
Status: resolved
Priority: 0/
Queue: Moo

People
Owner: Nobody in particular
Requestors: andreas.mock [...] web.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 2.000002



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
This has been fixed in the repo and will be included in the next release.
Fixed in 2.000002