From: Vincent Pit Date: Tue, 6 Aug 2013 21:03:41 +0000 (-0300) Subject: Preserve __PACKAGE__ from stringification by => X-Git-Tag: rt87282^0 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLaTeX-TikZ.git;a=commitdiff_plain;h=5320bfbf612fadc6acc5363436814b185a220909 Preserve __PACKAGE__ from stringification by => This bug in t/02-autocoerce.t was made visible by a recent change in 5.19. --- diff --git a/t/02-autocoerce.t b/t/02-autocoerce.t index cbfb6e3..39ab616 100644 --- a/t/02-autocoerce.t +++ b/t/02-autocoerce.t @@ -126,7 +126,7 @@ use LaTeX::TikZ::Meta::TypeConstraint::Autocoerce; ); coerce 'LaTeX::TikZ::TestX::Autocoerce' - => from __PACKAGE__ + => from +(__PACKAGE__) => via { $_->x }; __PACKAGE__->meta->make_immutable;