Jesse Luehrs wrote:
This is true though - could you give an example of the stack trace you're getting
perl -E 'package Foo; use Moose; has "bar" => (is => "ro", required => 0, isa => "Int", builder => "buildit", lazy => 1); sub buildit { return } package main; my $foo = Foo->new(); say $foo->bar()' Attribute (bar) does not pass the type constraint because: Validation failed for 'Int' failed with value undef at -e line 1 Only the real thing was very far from construction.