Inline DESTROY even without DEMOLISH methods
[gitmo/Moose.git] / t / 100_bugs / 022_role_caller.t
CommitLineData
b6f7ee15 1package MyRole;
2
3use Moose::Role;
4
5sub foo { return (caller(0))[3] }
6
7no Moose::Role;
8
9package MyClass1; use Moose; with 'MyRole'; no Moose;
10package MyClass2; use Moose; with 'MyRole'; no Moose;
11
12package main;
13
14use Test::More tests => 2;
15
16{
17 local $TODO = 'for rafl';
18 is(MyClass1->foo, 'MyClass1::foo',
19 'method from role has correct name in caller()');
20}
21is(MyClass2->foo, 'MyClass2::foo');