Skip to content

FUNC with implicit MAP returns allowed. #67

@python-processing-unit

Description

@python-processing-unit

According to the specification section 5.3:

Functions declared with return type TNS, MAP, FUNC, or THR MUST raise a runtime error if control reaches the end of the body without an explicit RETURN.

In the implementation, however, FUNC with implicit MAP returns return <null>.

Prefix REPL. Enter statements, blank line to run buffer.
>>> FUNC MAP: RETMAP(){}
>>> PRINT(RETMAP())
<null>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions