X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLaTeX-TikZ.git;a=blobdiff_plain;f=lib%2FLaTeX%2FTikZ%2FMeta%2FTypeConstraint%2FAutocoerce.pm;h=7671ade74ddbca7fb9538992ac72bb45ed295e75;hp=0356cb0a29a13da9dbf80ae2415a5bba93194512;hb=3984d6843fc2b502ea57bc9688932435fba14663;hpb=7ba67fb7132be201995057c8102d5df578dac20c diff --git a/lib/LaTeX/TikZ/Meta/TypeConstraint/Autocoerce.pm b/lib/LaTeX/TikZ/Meta/TypeConstraint/Autocoerce.pm index 0356cb0..7671ade 100644 --- a/lib/LaTeX/TikZ/Meta/TypeConstraint/Autocoerce.pm +++ b/lib/LaTeX/TikZ/Meta/TypeConstraint/Autocoerce.pm @@ -47,7 +47,9 @@ our $VERSION = '0.02'; coerce => 1, handles => [ 'id' ], ); - __PACKAGE__->meta->make_immutable; + # This class shouldn't be immutable when using Moose, or the + # coercing attributes will not be updated with the future coercions. + __PACKAGE__->meta->make_immutable if any_moose() ne 'Moose'; } # Another class the user wants to use instead of X (cannot be changed)