Carpet

Carpet

2M Downloads

repeated argument types override previous arguments

liolau opened this issue ยท 0 comments

commented

bug.sc:

__config() -> {
    'commands' -> {
        '<int> <int>' -> _(a, b) -> (print(a);print(b))
    }
}

command:

/bug 0 1

expected output:

0
1

actual output:

1
1

If this works as intended, the documentation should be updated to "Function argument type names must be unique." or similar.
Please also consider making this a non-silent error.