S06008
Error Code
S06008
Error Message
The definition of <xxx> is inconsistent with the declared signature.
RefId: S06008
Probable Causes
This error occurs when the declared signature is inconsistent with the defined signature.
For example, an error may arise due to an inconsistent number of parameters.
def f(a) // The declared function f takes a single parameter
def f(a, b) { // The defined function f takes two parameters, which is inconsistent with the declared function
}
Inconsistent parameter names trigger no error, but subsequent function calls must use the parameter name as declared, otherwise, the error S06004 occurs.
def f(a)
def f(b) {
}
f(b=1)
Solutions
Ensure that the declared signature is consistent with the defined signature.