ligo/src/test/contracts/condition-shadowing.religo
2019-12-10 13:47:31 +00:00

13 lines
199 B
Plaintext

/* TODO : make a test using mutation, not shadowing */
let main = (i: int) => {
let result = 0;
if (i == 2) {
let result = 42;
result;
} else {
let result = 0;
result;
};
};