Icon View Incident Report

Minor Minor
Reported By: Michael Dreher
Reported On: 9/19/2016
For: Version 2.05 Build 4
# 4450 Compiler Allows Duplicate Enumeration Members in Enumeration Type Declaration

I've made a programming error, redefining an enumeration name.

type
TEnum = (e1,e2,e3,e1,e4,e5); // e1 is duplicated

Surprisingly it compiles without errors or warnings. In the JavaScript output it results in a gap (if all names are referenced in

the code).

// JS:
var unit1_e1 = 0, unit1_e2 = 1, unit1_e3 = 2, unit1_e4 = 4, unit1_e5 = 5; // no 3-value here

Perhaps the compiler could catch this.


Comments Comments and Workarounds
The workaround is to not declare duplicate enumeration members.


Resolution Resolution
Fixed Problem on 9/20/2016 in version 2.06 build 1


Products Affected Products Affected
Elevate Web Builder
Elevate Web Builder Trial

Image