Skip to content

Lua frontend. Main function argument doesn't match it definition. #267

@ryukzak

Description

@ryukzak
function sum(x1, x2)
     x1 = x1 + x2
     x2 = x2 + 3
     sum(x1, x2)
end
sum(1,2,3)

This algorithm should fail, because sum called with 3 args, but we expect only 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions