Open simonrouse9461 opened 2 weeks ago
I figured out that if I do this, it will work properly:
local {a = 1, ...} = {a: 3};
a
Result:
3
I don't thinks this is intuitive or documented anywhere.
Yep, looks like a bug. Destructuring system is not being tested much, I'll look into it.
This works fine:
Result:
But this doesn't:
Error:
Is this intended? Or is it a bug?