Moose-2.1100 deprecated the list form of enum() calls
Karen Etheridge [Wed, 20 Nov 2013 21:18:22 +0000 (13:18 -0800)]
Changes
t/09-optional.t
t/10-recursion.t

diff --git a/Changes b/Changes
index 7477ea7..9b6233e 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,8 @@
 Revision history for MooseX-Types-Structured
 
+        - fixed use of an interface that was deprecated in Moose-2.1100
+          (ether)
+
 0.28   03 October 2011
         - Fixed regression where mixed type constraints (MX:Types style and
         'classic' Stringy style) are used in a single structured type doesn't
index 99964bf..f0e2ba2 100755 (executable)
@@ -70,7 +70,7 @@ OBJECTTEST: {
      where { $_ > 5};
 
     enum Gender,
-     qw/male female transgendered/;
+     [ qw/male female transgendered/ ];
 
     subtype TupleOptional1() =>
         as Tuple[Int, MoreThanFive, Optional[Str|Object]];
index c95315c..027eba2 100644 (file)
@@ -33,7 +33,7 @@ BEGIN {
     subtype Const() => as Int | Str;
     subtype Pair()  => as Tuple[ Expr, Expr ];
 
-    enum Op() => qw[ + - ];
+    enum Op() => [ qw[ + - ] ];
 
     subtype BinOp()  => as Tuple[ Expr, Op, Expr ];
     subtype Lambda() => as Tuple[ Var, Expr ];