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

Inferred type from (v == 1) does not work #26

Closed eerimoq closed 3 years ago

eerimoq commented 3 years ago

What did you do?

def main():
    v = (1 == 2)
    print(v)

What did you expect to see?

False

What did you see instead?

  File "./src/main.mys", line 157
        v = (1 == 2)
        ^
CompileError: cannot infer type from None

Mys version

0.170.0