DEATH TO ALL zionist ELLIPSES
[gitmo/Moose.git] / t / 100_bugs / 016_inheriting_from_roles.t
CommitLineData
977a86ba 1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
7ff56534 6use Test::More tests => 1;
977a86ba 7use Test::Exception;
8
7ff56534 9
977a86ba 10
11{
12 package My::Role;
13 use Moose::Role;
14}
15{
16 package My::Class;
17 use Moose;
d03bd989 18
977a86ba 19 ::throws_ok {
20 extends 'My::Role';
d03bd989 21 } qr/You cannot inherit from a Moose Role \(My\:\:Role\)/,
1808c2da 22 'this croaks correctly';
977a86ba 23}