Explicitly set the constraint for role type
[gitmo/Moose.git] / lib / Moose.pm
index 232c4bc..65538a7 100644 (file)
@@ -12,6 +12,11 @@ use Moose::Exporter;
 
 use Class::MOP;
 
+BEGIN {
+    die "Class::MOP version $Moose::VERSION required--this is version $Class::MOP::VERSION"
+        if $Moose::VERSION && $Class::MOP::VERSION ne $Moose::VERSION;
+}
+
 use Moose::Meta::Class;
 use Moose::Meta::TypeConstraint;
 use Moose::Meta::TypeCoercion;