Fixed letrec and letfun env management in infer_block #549

Closed
zxq9 wants to merge 1 commits from github/fork/radrow/typechecker-letfun-env-fix into master
zxq9 commented 2019-04-19 23:32:39 +09:00 (Migrated from gitlab.com)

Created by: radrow

The env was not updated while processing a block. This was causing following correct code not being accepted by the typechecker:

contract Test =
  function f() =
    let x() = 3
    x() 

Error: Unbound variable x.

*Created by: radrow* The env was not updated while processing a block. This was causing following correct code not being accepted by the typechecker: ``` contract Test = function f() = let x() = 3 x() ``` Error: `Unbound variable x`.
zxq9 commented 2019-04-19 23:35:44 +09:00 (Migrated from gitlab.com)

Created by: UlfNorell

Review: Approved

*Created by: UlfNorell* **Review:** Approved
zxq9 commented 2019-04-19 23:40:30 +09:00 (Migrated from gitlab.com)

Created by: radrow

This do not completely fix the issue, it is only typechecker part. After that there are some errors in aeso_ast_to_icode.erl file that I couldn't handle

*Created by: radrow* This do not completely fix the issue, it is only typechecker part. After that there are some errors in `aeso_ast_to_icode.erl` file that I couldn't handle
zxq9 commented 2019-05-10 19:44:27 +09:00 (Migrated from gitlab.com)

Created by: UlfNorell

Superseded by #65.

*Created by: UlfNorell* Superseded by #65.

Pull request closed

Sign in to join this conversation.
No description provided.