JSAbrahams / mamba

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

Allow mutable identifiers within Tuples #163

Closed JSAbrahams closed 4 years ago

JSAbrahams commented 4 years ago

Description of Bug

We cannot have mutable identifiers within tuples.

How to Reproduce

def (mut a, b) <- (10, 10)

Expected behaviour

The above is parsed, and the type checker correctly identifies a as mutable and b as immutable.