From: Dave Rolsky Date: Sat, 18 Sep 2010 04:01:18 +0000 (-0500) Subject: Fix undef warning X-Git-Tag: 1.15~141 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=435e394d93a37bc5ba2f47b23bbbf85b1a905544;p=gitmo%2FMoose.git Fix undef warning --- diff --git a/t/070_native_traits/300_array_subtypes.t b/t/070_native_traits/300_array_subtypes.t index 85d6dd3..20a312f 100644 --- a/t/070_native_traits/300_array_subtypes.t +++ b/t/070_native_traits/300_array_subtypes.t @@ -10,7 +10,7 @@ use Test::Exception; subtype 'A1', as 'ArrayRef[Int]'; subtype 'A2', as 'ArrayRef', where { @$_ < 2 }; - subtype 'A3', as 'ArrayRef[Int]', where { sum(@$_) < 5 }; + subtype 'A3', as 'ArrayRef[Int]', where { ( sum(@$_) || 0 ) < 5 }; no Moose::Util::TypeConstraints; }