the repository now lives at https://github.com/moose/MooseX-Types-Structured
[gitmo/MooseX-Types-Structured.git] / t / 10-recursion.t
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 ];