@test_list = (method { 1 }, sub { 2 }, method () { 3 }, sub { 4 });
- method leftie :lvalue { $self->{attributes} };
+ method leftie($left) : method { $self->{left} ||= $left; $self->{left} };
}
use Test::More 'no_plan';
is($o->main, 'main', 'declaration of package named method ok');
-$o->leftie = 'attributes work';
+$o->leftie( 'attributes work' );
is($o->leftie, 'attributes work', 'code attributes intact');
$o->upgrade;