leo/tests/compiler/function/duplicate_definition_fail.leo

18 lines
290 B
Plaintext
Raw Normal View History

2021-05-05 18:29:44 +03:00
/*
namespace: Compile
expectation: Fail
input_file: inputs/dummy.in
2021-05-05 18:29:44 +03:00
*/
2022-10-06 02:53:49 +03:00
program test.aleo {
function main(y: bool) -> bool {
console.log("{}", 1u8);
return y;
}
function main(y: bool) -> bool {
console.log("{}", 2u8);
return y;
}
2021-05-05 18:29:44 +03:00
}