On Oct 21, 2010, at 9:51 AM, Karel Bílek wrote:

Hello,

when I use Moose in conjunction with Test::Deep, I got this warning:

Prototype mismatch: sub (name of package)::blessed ($) vs none at
/usr/share/perl/5.10/Exporter.pm line 66.

Example:

perl -e 'package P; use Moose; use Test::Deep::NoTest;'

got me:
Prototype mismatch: sub P::blessed ($) vs none at
/usr/share/perl/5.10/Exporter.pm line 66.
at -e line 1

If I switch places of Test::Deep::NoTest and Moose, I got:

Prototype mismatch: sub P::blessed: none vs ($) at
/usr/share/perl5/Sub/Exporter.pm line 896

What is going on?

Best regards,
Karel Bílek

Karel,

This is because Moose exports Scalar::Util::blessed($) and Test::Deep exports its own prototype-less blessed. You likely need to be more explicit about what you export from Test::Deep (my recommendation) or more explicit about what you export from Moose.

- stevan

Reply via email to