Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring variable into scope if bound on all branches #21

Open
nachivpn opened this issue Mar 20, 2018 · 1 comment
Open

Bring variable into scope if bound on all branches #21

nachivpn opened this issue Mar 20, 2018 · 1 comment

Comments

@nachivpn
Copy link
Owner

Currently, this program is rejected although it is semantically valid:

x() -> 
    if
      true -> X = 1;
      false -> X = 3
    end,
    X.    %%line 24

with error:

test.erl: error in parse transform 'etc': {"Type Error: 'X' not bound on line 24
nachivpn added a commit that referenced this issue May 8, 2018
@nachivpn
Copy link
Owner Author

nachivpn commented May 8, 2018

needs testing..

nachivpn added a commit that referenced this issue May 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant