Constant expression expected

This expression must be constant. You cannot use variables, assignments, predefined symbols that are not constant, or functions with side-effects. However, you can read from parameters and from predefined symbols that are constant.

Example:

default:
  precision = myVariable

This won't compile because myVariable is not a constant expression. This would compile correctly:

default:
  precision = round(log(@myParameter))

See Also
Errors