leo/tests/compiler/definition/use_decl_variable_as_assign_fail.leo
2022-06-02 09:37:55 -07:00

10 lines
144 B
Plaintext

/*
namespace: Compile
expectation: Fail
input_file: inputs/dummy.in
*/
function main(y: bool) -> bool {
let b: u8 = b;
return y == true;
}