Enums were introduced in IBM i 7.4 and can only be defined in free format. The parser will fail to parse any enum declarations in free format code with the following error:
”Could not parse line 2: Invalid assignment operator: -”
Example code:
dcl-enum colorCodes qualified;
blue 1;
green 2;
yellow 3;
end-enum;
The parser will fail with the above error and refuse to parse the rest of the program.
Can you give your context for this? I.e. are you on SonarQube Cloud? SonarQube for IDE (flavor and version)? SonarQube self-managed (flavor and version)?