clio-lang / clio

Clio is a functional, parallel, distributed programming language.
https://clio-lang.org
Apache License 2.0
936 stars 30 forks source link

Assignments do not compile #161

Closed garritfra closed 4 years ago

garritfra commented 4 years ago

Describe the bug When trying to assign any value to a variable (here foo), the following error is thrown:

Error: foo is not defined

To Reproduce Steps to reproduce the behavior:

  1. Run clio new foo
  2. Run cd foo
  3. Replace src/main.clio with this snippet:
    2 => bar
    bar -> print
  4. Run clio run (5. Copy new clio internals to source if nessessary) (6. Run clio run again)

Expected behavior The value should be assigned to the variable

Screenshots null

Versions (please complete the following information):

Possible solutions

Additional context This issue was detected when reviewing #157