]> git.vpit.fr Git - perl/modules/LaTeX-TikZ.git/commitdiff
Preserve __PACKAGE__ from stringification by => rt87282
authorVincent Pit <vince@profvince.com>
Tue, 6 Aug 2013 21:03:41 +0000 (18:03 -0300)
committerVincent Pit <vince@profvince.com>
Tue, 6 Aug 2013 21:16:07 +0000 (18:16 -0300)
This bug in t/02-autocoerce.t was made visible by a recent change in 5.19.

t/02-autocoerce.t

index cbfb6e39df1f675a222e77053fa59fbddac58843..39ab616c394f4dddbda2ec202982867cca192627 100644 (file)
@@ -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;