projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
2859929
)
one more constrained scope in tc inlining
Jesse Luehrs [Thu, 21 Apr 2011 21:15:16 +0000 (16:15 -0500)]
lib/Moose/Util/TypeConstraints/Builtins.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Util/TypeConstraints/Builtins.pm
b/lib/Moose/Util/TypeConstraints/Builtins.pm
index
7c636d3
..
7beac71
100644
(file)
--- a/
lib/Moose/Util/TypeConstraints/Builtins.pm
+++ b/
lib/Moose/Util/TypeConstraints/Builtins.pm
@@
-60,7
+60,7
@@
sub define_builtins {
=> inline_as {
'defined(' . $_[1] . ') '
. '&& (ref(\\' . $_[1] . ') eq "SCALAR"'
- . '|| ref(\\(my $val = ' . $_[1] . ')) eq "SCALAR")'
+ . '|| do { ref(\\(my $val = ' . $_[1] . ')) eq "SCALAR" })'
};
subtype 'Num'