mt icon indicating copy to clipboard operation
mt copied to clipboard

Bring variable into scope if bound on all branches

Open nachivpn opened this issue 6 years ago • 1 comments

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 avatar Mar 20 '18 15:03 nachivpn

needs testing..

nachivpn avatar May 08 '18 10:05 nachivpn