{
package Bar;
- use strict;
- use warnings;
use Moose;
eval { extends 'Foo'; };
{
package Baz;
- use strict;
- use warnings;
use Moose;
eval { extends 'Bar'; };
{
package Foo::Bar;
- use strict;
- use warnings;
use Moose;
eval { extends 'Foo', 'Bar'; };
{
package Bling;
- use strict;
- use warnings;
use Moose;
eval { extends 'No::Class'; };
::ok($@, '... could not find the superclass (as expected)');
- ::like($@, qr/^Could not load superclass 'No\:\:Class' because \:/, '... and got the error we expected');
+ ::like($@, qr/^Could not load class \(No\:\:Class\) because \:/, '... and got the error we expected');
}