Przeglądaj źródła

Merge pull request #4856 from jamienoss/issue9975-evalModENUM

HPCC-9975 Evaluate(module) does not like enum

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday 11 lat temu
rodzic
commit
d1edc6a837
2 zmienionych plików z 13 dodań i 0 usunięć
  1. 1 0
      ecl/hql/hqlutil.cpp
  2. 12 0
      ecl/regress/issue9975.ecl

+ 1 - 0
ecl/hql/hqlutil.cpp

@@ -4204,6 +4204,7 @@ IHqlExpression * ModuleExpander::createExpanded(IHqlExpression * scopeExpr, IHql
             switch (value->getOperator())
             {
             case no_typedef:
+            case no_enum:
                 op = no_none;
                 break;
             }

+ 12 - 0
ecl/regress/issue9975.ecl

@@ -0,0 +1,12 @@
+x := module
+
+    export e := enum(a,b,c);
+    export t := unsigned2;
+    export pattern p := 'h';
+    export r:= { unsigned id; };
+
+    export f(unsigned i) := i * 10;
+    export hello(string who = 'world') := 'hello ' + who;
+end;
+
+output(x);