Ernesto,

You have ClassName mispelled in your test :)

has 'class_m' =>
        (
                is                      => 'rw',
                isa             => 'ClassMame',
        );


- Stevan

On May 13, 2008, at 6:59 AM, Ernesto wrote:
Hi Stevan,

seems like I found a strange bug at the type constraint ClassName.

Using ClassName as TC in an object, it fails - while using it as
exported function, it works.

Moreover, copying the exact type definition of ClassName from
Moose::Util::TypeConstraints into an own package or into an object
itself, all works as expected.

Sorry, I have no idea, how comes.

Please have a look at
http://dienstleistung-kultur.de/moose/06_classname.t.txt

        Ernesto

P.S.: My environment:
Perl v5.8.8 on Debian 4.0 Etch
Moose 0.44
Class::MOP 0.55




Reply via email to