Closed sbinet closed 6 years ago
the following fails in ng:
ng
ng> func f() (result int) { ..> return result ..> } ng: typecheck: undeclared identifier: result
I think the parser does support named return types (at least, I recall spending a long time on it), the problem is the typechecker not loading them into the scope.
the following fails in
ng
: