Skip to content

SYNG2006 - Unexpected argument

Domain: query
Severity: USER

Too many arguments were provided to a selector.

Each selector accepts a specific number of arguments. Providing more arguments than the selector expects will produce this error.

Example

clojure
(call foo bar baz)

If (call) only accepts 0-2 arguments, providing 3 is an error.

Solution

Remove the extra arguments. Check the selector's documentation for the expected argument count:

clojure
(call foo)

SYNG2007, SYNG2009

Copyright © 2022-present Semantic Works, Inc.