stop using a package global for enums, just close over it
[gitmo/Moose.git] / t / type_constraints / util_std_type_constraints.t
index d98f16c..89c35ba 100644 (file)
@@ -1014,6 +1014,7 @@ sub test_constraint {
     if ( $type->has_inlined_type_constraint ) {
         $inlined = eval_closure(
             source      => 'sub { ( ' . $type->_inline_check('$_[0]') . ' ) }',
+            environment => $type->inline_environment,
         );
     }