Commit | Line | Data |
---|---|---|
9d759b64 | 1 | package DX::Class; |
2 | ||
3 | use Import::Into; | |
4 | ||
5 | sub import { | |
6 | strictures->import::into(1); # should pass version | |
7 | Moo->import::into(1); | |
8 | # This would not be safe with method modifiers, but since the role | |
9 | # provides only a single method it works out fine. | |
10 | caller()->can('with')->('DX::Role::But'); | |
11 | } | |
12 | ||
13 | 1; |