leo/tests/compiler/console/log_conditional.leo

6 lines
193 B
Plaintext
Raw Normal View History

2021-01-04 19:34:38 +03:00
// Conditionally add two u32 integers and log the result to the console.
function main(a: u32, b: u32) {
if a == b {
console.log("{}=={}",a,b); // This line should not fail.
}
}