clio-lang / clio

Clio is a functional, parallel, distributed programming language.

Home Page:https://clio-lang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assignments do not compile

garritfra opened this issue · comments

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
  1. 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):

  • OS: MacOS Catalina
  • Clio: develop
  • Node: 12.13.1
  • NPM: 6.13.6

Possible solutions

  • 👀

Additional context
This issue was detected when reviewing #157