JSAbrahams / mamba

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

Allow constructor calls with generics #458

Open JSAbrahams opened 1 year ago

JSAbrahams commented 1 year ago

Relevant issues

Summary

Only issue now is that we must mark generics when checking class bodies. This means that we should check whether they exist in the context, but instead whether they are mentioned as a generic in the class name.

The two new tests hint as this, but within this PR the generate stage should also preserve the generics of classes in the output.

Added Tests

-