From d8b2ea1a929df0fd49261b44173d50641ea39763 Mon Sep 17 00:00:00 2001 From: Toby Inkster Date: Sat, 19 Oct 2024 22:28:36 +0100 Subject: [PATCH] fix test cases --- lib/Type/Params/Signature.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Type/Params/Signature.pm b/lib/Type/Params/Signature.pm index fc523956..f547a695 100644 --- a/lib/Type/Params/Signature.pm +++ b/lib/Type/Params/Signature.pm @@ -300,8 +300,8 @@ sub class { $_[0]{class} } sub constructor { $_[0]{constructor} } sub named_to_list { $_[0]{named_to_list} } sub oo_trace { $_[0]{oo_trace} } -sub returns_scalar{ $_[0]{returns_scalar} } sub has_returns_scalar{ exists $_[0]{returns_scalar} } -sub returns_list { $_[0]{returns_list} } sub has_returns_list { exists $_[0]{returns_list} } +sub returns_scalar{ $_[0]{returns_scalar} } sub has_returns_scalar{ defined $_[0]{returns_scalar} } +sub returns_list { $_[0]{returns_list} } sub has_returns_list { defined $_[0]{returns_list} } sub method_invocant { $_[0]{method_invocant} = defined( $_[0]{method_invocant} ) ? $_[0]{method_invocant} : 'undef' }