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

Iterating over dict does not work when returned from function. #43

Closed eerimoq closed 3 years ago

eerimoq commented 3 years ago

What did you do?

from os import env

def main():
    for name, value in env():
        print(name, value)

What did you expect to see?

It works.

What did you see instead?

KeyError: 0

Mys version

main