Whenever we inline a type constraint, we need to include its inline environment.
authorDave Rolsky <autarch@urth.org>
Thu, 21 Apr 2011 20:40:08 +0000 (15:40 -0500)
committerJesse Luehrs <doy@tozt.net>
Tue, 17 May 2011 23:53:37 +0000 (18:53 -0500)
commite750d47f97f7c7bc0c805d582455e994b64fe724
treeeaa6c63824a8af91ae08fefcdfa996f9958440ad
parentd6874ac69c246d951ffa65691060e835511848c4
Whenever we inline a type constraint, we need to include its inline environment.

Test every builtin TC as a simple attr's constraint, and as a native Array trait's member TC.

This thoroughly tests that we are propogating the TC's inline environment properly.
lib/Moose/Meta/Method/Accessor.pm
lib/Moose/Meta/Method/Constructor.pm
lib/Moose/Meta/TypeConstraint/Parameterized.pm
t/type_constraints/util_std_type_constraints.t