Closed ThierryBleau closed 3 years ago
let x = 1; let y = 2; let f = (x, y) => { let x = (); let y = []; (x,y); }; f(1);
Returns type error when unifying TConst("int") and TConst("unit").
TConst("int")
TConst("unit")
We do have expected behavior outside of function scopes however.
let x = 1; let x = "hello"; x;
Returns x : TConst("string:)
x : TConst("string:)
Returns type error when unifying
TConst("int")
andTConst("unit")
.We do have expected behavior outside of function scopes however.
Returns
x : TConst("string:)