mys-lang / mys

The Mys programming language - an attempt to create a statically typed Python-like language that produces fast binaries. See https://mys-lang.org for more information.
Other
132 stars 5 forks source link

List comprehension in method does not work #35

Closed eerimoq closed 3 years ago

eerimoq commented 3 years ago

What did you do?

class Foo:
    def bar(self):
        print([0 for i in range(10)])

What did you expect to see?

Ok.

What did you see instead?

C++ error, self not defined.

Mys version