projects
/
gitmo/Mouse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
2929db0
)
Add a warning for an old style use of TypeConstraint
gfx [Tue, 29 Sep 2009 07:04:49 +0000 (16:04 +0900)]
lib/Mouse/Meta/TypeConstraint.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Mouse/Meta/TypeConstraint.pm
b/lib/Mouse/Meta/TypeConstraint.pm
index
c9afe63
..
cfc1aed
100644
(file)
--- a/
lib/Mouse/Meta/TypeConstraint.pm
+++ b/
lib/Mouse/Meta/TypeConstraint.pm
@@
-20,8
+20,8
@@
sub new {
my $check = $args{_compiled_type_constraint} || $args{constraint};
- # FIXME
if(blessed($check)){
+ Carp::cluck("'constraint' must be a CODE reference");
$check = $check->{_compiled_type_constraint};
}