tobyink / p5-moops

16 stars 4 forks source link

Opaque error message for missing requirement during role composition #12

Open tobyink opened 3 years ago

tobyink commented 3 years ago

Migrated from rt.cpan.org #102445 (status was 'new')

Requestors:

From sven.schober@uni-ulm.de on 2015-03-02 09:47:41 :

Consider this minimal example:

!/usr/bin/env perl

use strict; use warnings; use Moops;

role rA {

method mA {}

} role rB { requires 'mA'; } class cA with rB, rA { method m { warn "m()"; } } cA->new()->m();

Trying to compile/run this yields:

$ perl opaque-error-msg.pl Execution of opaque-error-msg.pl aborted due to compilation errors.

And nothing more. Is there a way to get more feedback on what is going wrong?

I am using Moops 0.034 and Perl 5.18.2. Please let me know if you need more information to reproduce this.