leo/disabled_tests/compiler/statements/ternary_non_const_fail.leo

10 lines
115 B
Plaintext

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