Encountered a keyword or format item that is not allowed in the current context.

#2009   Compile-time error

Encountered a keyword or format item that is not allowed in the current context.

Additional Information

The 'X' keyword is not allowed in Y.
    where X is a keyword and Y is the context in which X occurred.
The 'X' test is not allowed in Y.
    where X is a keyword and Y is the context in which X occurred.

Recovery

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

Explanation

A keyword relating to markup documents has been used in a cross-translation, or a pattern variable has been referenced in a context where patterns are not allowed.