Skip to content

Feature: Basic Support for Named Arguments #8

@TIHan

Description

@TIHan

Basic Support:

M(x: int32, y: int32): () =
    print(x)
    print(y)

main(): () =
    M(x = 1, 1) // ERROR
    M(1, y = 1) // PASS
    M(x = 1, y = 1) // PASS
    M(y = 1, x = 1) // out-of-order. PASS?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions