You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to alias a parent class attr from child class? Below would give Found unknown argument 'alias' in the has declaration for 'foo' in class Bar.
use 5.020;
use warnings;
packageFoo {
use Moose;
has foo=> (is=>'ro');
}
packageBar {
use Moose;
use MooseX::Aliases;
extends 'Foo';
has '+foo'=> (alias=>'baz');
}
my$bar = Bar->new( baz=> 1);
say$bar->foo;
The text was updated successfully, but these errors were encountered:
Is it possible to alias a parent class attr from child class? Below would give
Found unknown argument 'alias' in the has declaration for 'foo' in class Bar
.The text was updated successfully, but these errors were encountered: