#1292. Compile error in Enhanced enums example fixed
diff --git a/LanguageFeatures/Enhanced-Enum/example_A01_t01.dart b/LanguageFeatures/Enhanced-Enum/example_A01_t01.dart
index 77975c6..4d99f3f 100644
--- a/LanguageFeatures/Enhanced-Enum/example_A01_t01.dart
+++ b/LanguageFeatures/Enhanced-Enum/example_A01_t01.dart
@@ -71,7 +71,7 @@
 // With type argument, mixin and interface.
 enum Complex<T extends Pattern> with EnumComparable<Complex> implements Pattern {
   whitespace<RegExp>(r"\s+", RegExp.new),
-  alphanum<RegExp>.captured(r"\w+"),
+  alphanum<RegExp>.captured(r"\w+", RegExp.new),
   anychar<RegExp>(".", RegExp.new),
   ;
 
@@ -97,8 +97,8 @@
   }
 
   // Named constructor. Redirecting.
-  const Complex.captured(String regexpPattern)
-    : this("($regexpPattern)", RegExp.new);
+  const Complex.captured(String regexpPattern, T Function(String) factory)
+    : this("($regexpPattern)", factory);
 
   // Can expose the implicit name.
   String get name => EnumName(this).name;