use Moose (
extends => { -as => 'moose_extends' },
around => { -as => 'moose_around' },
- 'confess',
+ qw/confess blessed/,
);
use Carp 'croak';
__PACKAGE__->setup_import_methods(
with_caller => ['parameter', 'role', 'method'],
- as_is => ['has', 'with', 'extends', 'requires', 'excludes', 'augment', 'inner', 'before', 'after', 'around', 'super', 'override'],
+ as_is => ['has', 'with', 'extends', 'requires', 'excludes', 'augment', 'inner', 'before', 'after', 'around', 'super', 'override', 'confess', 'blessed'],
);
sub parameter {
--- /dev/null
+#!/usr/bin/env perl
+use strict;
+use warnings;
+use Test::More tests => 2;
+
+do {
+ package MyRole;
+ use MooseX::Role::Parameterized;
+ ::is(\&confess, \&Carp::confess, 'confess');
+ ::is(\&blessed, \&Scalar::Util::blessed, 'blessed');
+};
+