bad.meson

on kitten's pastes | raw

expires: 11 Mar, 2024

 1func foo(bar: [])
 2    baz = []
 3    foreach b : bar
 4        baz += b
 5    endforeach
 6    return baz
 7endfunc
 8
 9# foo() works as intended
10foo(bar: ['meow'])
11# err: str is not iterable
12# ^ because kwarg 'bar' gets converted to a single element of the type 'str'
13foo(bar: 'meow')