$self->bar($arg);
}
-# method no_invocant_named_param($arg) {
-# $self->bar($arg);
-# }
+ method no_invocant_named_param(:$arg) {
+ $self->bar($arg);
+ }
};
is $@, '', 'compiles without invocant';
my $stuff = Stuff->new;
is( $stuff->no_invocant_class_type(Foo::Bar->new), 'Foo::Bar' );
-#is( $stuff->no_invocant_named_param(arg => Foo->new), 'Foo' );
+is( $stuff->no_invocant_named_param(arg => Foo->new), 'Foo' );