assert error issue

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

*                                                                                                                                                                                                                                                                                              *  

Conclusion

None

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Components

Assignee

Reporter

Priority

Fix versions

Affects versions

Created October 30, 2018 at 12:58 PM
Updated November 7, 2018 at 9:58 AM
Resolved November 7, 2018 at 9:58 AM