JSAbrahams / mamba

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

Allow empty interfaces #162

Closed JSAbrahams closed 4 years ago

JSAbrahams commented 4 years ago

Description of Bug

At the moment we cannot have empty classes

How to Reproduce

Create an empty Interface:

type A

This raises a parse error, as we expect a body.

Note that in Mamba, the line between interfaces and type aliases is intentionally blurry.

Expected behaviour

An empty class is treated as a class with no body,