leo/tests/compiler/statements/ternary_non_const_fail.leo

10 lines
115 B
Plaintext
Raw Normal View History

2021-05-06 14:52:20 +03:00
/*
namespace: Compile
expectation: Fail
*/
function main() {
let x = 3u8;
const y = x > 2u8? 1u8 : 2u8;
}