class_of TCs
[gitmo/Moose.git] / lib / Moose / Util / TypeConstraints.pm
index b792f59..bd1f63b 100644 (file)
@@ -598,7 +598,7 @@ $_->make_immutable(
     # these are Class::MOP accessors, so they need inlining
     inline_accessors => 1
     ) for grep { $_->is_mutable }
-    map { $_->meta }
+    map { Class::MOP::class_of($_) }
     qw(
     Moose::Meta::TypeConstraint
     Moose::Meta::TypeConstraint::Union