From: Dave Rolsky Date: Sat, 17 Sep 2011 14:38:11 +0000 (-0500) Subject: Test parent of ArrayRef|HashRef X-Git-Tag: 2.0300~44 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8942e607b716b01c9280d01c6ef1f39328506e89;p=gitmo%2FMoose.git Test parent of ArrayRef|HashRef --- diff --git a/t/type_constraints/union_types.t b/t/type_constraints/union_types.t index 4fe30d8..9e5385b 100644 --- a/t/type_constraints/union_types.t +++ b/t/type_constraints/union_types.t @@ -151,4 +151,10 @@ is( '... (ArrayRef | HashRef) cannot accept Numbers' ); +is( + $ArrayRef_or_HashRef->parent, + find_type_constraint('Ref'), + 'parent of ArrayRef|HashRef is Ref' +); + done_testing;