A declaration was encountered in an invalid position.

#2013   Compile-time error

A declaration was encountered in an invalid position.

Additional Information

The declaration is 'X'.

Recovery

Compilation continues but no compiled source code file will be saved.

Explanation

A translation type must appear at the beginning of the OmniMark program (ignoring comments and white space), and at most one such declaration is allowed in a program. A namecase entity or namecase general declaration may appear only after the translation type declaration (if there is one) and before any other rules and declarations.