leo/tests/compiler/statements/ternary_non_const_fail.leo
2021-05-06 14:52:20 +03:00

10 lines
115 B
Plaintext

/*
namespace: Compile
expectation: Fail
*/
function main() {
let x = 3u8;
const y = x > 2u8? 1u8 : 2u8;
}