diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/typ/compiler/spread.typ | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/typ/compiler/spread.typ b/tests/typ/compiler/spread.typ index 0afbed85..f4864faf 100644 --- a/tests/typ/compiler/spread.typ +++ b/tests/typ/compiler/spread.typ @@ -115,6 +115,16 @@ } --- +// Unnamed sink should just ignore any extra arguments. +#{ + let f(a, b: 5, ..) = (a, b) + test(f(4), (4, 5)) + test(f(10, b: 11), (10, 11)) + test(f(13, 20, b: 12), (13, 12)) + test(f(15, b: 16, c: 13), (15, 16)) +} + +--- #{ let f(..a, b, c, d) = none |
