S06007

Error Code

S06007

Error Message

Function <xxx> is declared but not defined yet. RefId: S06007

Probable Causes

This error occurs when an undefined function is declared.

For example:

def f()  // Declare the function f

def g() {
    f()
}

// An error occurs since f is undefined

Solutions

If a function is declared in a script, make sure that it is defined.

def f()  // Declare the function f

def g() {
    f()
}

def f() {  // Define f
    print("Call f()")
}