mental32/monty

Support class and basic user-creatable types

mental32 opened this issue · 0 comments

Allow the following to be valid code:

class Foo:
    pass

def make_foo() -> Foo:
    return Foo()

def main():
    make_foo()

once that is working let's do associated methods:

class Foo:
-     pass
+    def bar(self) -> Foo: return self