Skip to content

SYNG2003 - Invalid constant

Domain: query
Severity: USER

An unrecognized constant value was used.

Some positions in selectors expect constant values from a predefined set. Using an unknown constant will produce this error.

Example

clojure
(visibility unknown)

If visibility expects values like public or private, using unknown is invalid.

Solution

Check the selector's documentation for valid constant values. Common constants vary by selector and language.

SYNG2009

Copyright © 2022-present Semantic Works, Inc.