Commit | Line | Data |
---|---|---|
d3982c7e | 1 | use strict; |
2 | use warnings; | |
3 | use Test::More tests => 1; | |
4 | ||
5 | eval { | |
6 | package Request; | |
3b46bd49 | 7 | use Mouse::Util::TypeConstraints; |
d3982c7e | 8 | |
3fa6f35d | 9 | type 'Int' => where { 1}; |
d3982c7e | 10 | }; |
7dbebb1b | 11 | like $@, qr/The type constraint 'Int' has already been created in Mouse::Util::TypeConstraints and cannot be created again in Request/; |