X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FLexical%2FTypes.pm;h=85df03982bc19897735fa4cfbb50726a87db3a4f;hb=cdabc1884bd85c70f2cb491a669113fdf7aba11c;hp=f84372b17fda02d9ac87d0b327fcd91d8a4c7481;hpb=b231c8a43aba9af5993d8cb5484ca1480709c05b;p=perl%2Fmodules%2FLexical-Types.git diff --git a/lib/Lexical/Types.pm b/lib/Lexical/Types.pm index f84372b..85df039 100644 --- a/lib/Lexical/Types.pm +++ b/lib/Lexical/Types.pm @@ -82,9 +82,9 @@ If the value given is a code reference C<$mangler>, it will be called at compile either an empty list, in which case the current typed lexical definition will be skipped (thus it won't be altered to trigger a run-time hook) ; - use Lexical::Types as => sub { return $_[0] =~ /Str/ ? () : @_ }; - my Str $x; # nothing special - my Int $y; # calls Int->TYPEDSCALAR + use Lexical::Types as => sub { return $_[0] =~ /Str/ ? @_ : () }; + my Str $y; # calls Str->TYPEDSCALAR + my Int $x; # nothing special =item *