Skip to content

Empty return statement not recognized #71

@spralja

Description

@spralja
func foo() {
    print("Hello World");
    return;
}

foo();
Console Output:
Error occurred: Line 3: Could not match to an expression

raises an error

func foo() {
    print("Hello World");
    return 1;
}

foo();
Console Output:
Hello World

works as expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions