Skip to content

Stepper: Build-in function ignores extra arguments passed in #1626

Open
@hanscau

Description

@hanscau

When a built-function is called with more arguments than it requires, it ignores it.

pair(1, 2, 3, 4, 5) will result in [1, 2]
head(list(1), list(2), list(3)) will return 1
is_boolean(1, 3, "string", false) will return false

It should throw an "Expected x arguments, but got y." error instead

Expected behaviour:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working_postponedpostponed for now; revisiting later, when time allowsminorless important than important but more than nice-to-have

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions