Morpho-lang / morpho

The Morpho language 🦋. Morpho is a small embeddable language for scientific computing applications.
MIT License
30 stars 10 forks source link

Function with only variadic parameters doesn't work #180

Closed softmattertheory closed 1 year ago

softmattertheory commented 1 year ago

Describe the bug A function with only variadic parameters raises an argument error 'InvldArgs'.

To Reproduce fn f(...a) { print a }

f(1) f(1,2) f(1,2,3)

Expected behavior The above example should, respectively, print: [1] [1,2] [1,2,3]

softmattertheory commented 1 year ago

Fixed by #186