ligo/src/test/contracts/condition-shadowing.religo

13 lines
199 B
Plaintext
Raw Normal View History

2019-12-10 17:47:31 +04:00
/* 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;
};
};