JSAbrahams / mamba

🐍 The Mamba programming language, because we care about safety
MIT License
85 stars 3 forks source link

Type checker cannot handle assigning to tuples #253

Closed JSAbrahams closed 2 years ago

JSAbrahams commented 2 years ago

How to Reproduce

Error: [error | type] Expected valid identifier
   2 | def b := ()
   3 | def (e, f) := (2, False)
                ^

Expected behavior

Should treat tuple above as two assignments. In general, split tuple and assign to each variable separately.