Subject: | Prototype mismatch with role composition and around |
Date: | Tue, 03 Mar 2015 14:07:24 +0100 |
To: | bug-Moo [...] rt.cpan.org |
From: | Sven Schober <sven.schober [...] uni-ulm.de> |
Executing the attached minimal example yields:
$ perl prototype-mismatch.pl
Prototype mismatch: sub cG::mA ($) vs none at (eval 18) line 2.
ok 1 - correct wrapping
1..1
So, the prototype seems not to be preserved during application of the
role. Is this expected behaviour, or is there a way around this?
Note, this only occurs with role composition and not with inheritance.
I am using Perl 5.18.2, Moo and Moo::Role 2.000000.
Cheers
Sven
--
Dipl.-Inf. Sven Schober
Universität Ulm
kiz - Abteilung Infrastruktur
89069 Ulm
Tel.: +49 731 50 22484
Message body is not shown because sender requested not to inline it.
Message body not shown because it is not plain text.