0111: Function not found in current scope
function foo
function bar: int
return 5
end
end
int x = bar() // `bar` not found, because `bar is defined and available only in function `foo`Possible solutions:
function foo
end
var x = fo() // error, `fo` not found
var x = foo() // OK// global scope
function baz: int
return 5
end
function foo
// function scope
int x = bar() // OK, `bar` is available in current scope
int y = baz() // OK, `baz` is available in current scope
function bar: int
return 5
end
end
int x = bar() // `bar` not found
int y = baz() // OKLast updated