From: Karen Etheridge Date: Wed, 20 Nov 2013 21:18:22 +0000 (-0800) Subject: Moose-2.1100 deprecated the list form of enum() calls X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-Types-Structured.git;a=commitdiff_plain;h=02aebec2f10b7bc8327fb0b2c9bb031f17764cd8 Moose-2.1100 deprecated the list form of enum() calls --- diff --git a/Changes b/Changes index 7477ea7..9b6233e 100644 --- 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 diff --git a/t/09-optional.t b/t/09-optional.t index 99964bf..f0e2ba2 100755 --- a/t/09-optional.t +++ b/t/09-optional.t @@ -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]]; diff --git a/t/10-recursion.t b/t/10-recursion.t index c95315c..027eba2 100644 --- a/t/10-recursion.t +++ b/t/10-recursion.t @@ -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 ];