Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-20862

assert error issue

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.4.16
    • Fix Version/s: 7.0.2
    • Component/s: eclcc
    • Labels:
      None

      Description

      got an assert error on syntax check within IDE.  per email response from Gavin creating jira:

       

      code sample that gave error below is here:

      EXPORT Functions := MODULE
      .

      EXPORT fn_AccountStatus_sort_order(STRING status) := FUNCTION

      fn_AccountStatus_sort_order := CASE(status,
      'OVERDUE' => 1,
      'CURRENT' => 2,
      'CLOSED' => 3,
      999);

      RETURN fn_AccountStatus_sort_order;
      END;
      EXPORT fn_AccountStatus_sort_order2(STRING status) := FUNCTION

      fn_AccountStatus_sort_order := CASE(status,
      'OVERDUE' => 1,
      'CURRENT' => 2,
      'CLOSED' => 3,
      999);

      RETURN fn_AccountStatus_sort_order;
      END;

      END; // module.

      Got this error:

      Error: syntax error near ":=" : expected '(' (393, 40), 3002,
      Error: assert(basetype->getTypeCode() != type_function) failed - file: deftype.cpp, line 1952 (0, 0), 3000,

      In QB: 6.4.16 clienttools IDE :

      Version: community_6.4.16-1
      Server: internal_6.4.28-1
      Compiler: 6.4.16 community_6.4.16-1

      *                                                                                                                                                                                                                                                                                              *  

        Attachments

          Activity

            People

            • Assignee:
              ghalliday Gavin Halliday
              Reporter:
              dlingle Don Lingle
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: