leo/tests/compiler/function/duplicate_definition_fail.leo

16 lines
206 B
Plaintext
Raw Normal View History

2021-05-05 18:29:44 +03:00
/*
namespace: Compile
expectation: Fail
2021-07-27 23:39:34 +03:00
input_file: input/integers.in
2021-05-05 18:29:44 +03:00
*/
2021-07-27 23:39:34 +03:00
function main(a: u32) -> u32 {
console.log("{}", 1u8);
return 10u32;
2021-04-07 20:20:58 +03:00
}
function main() {
console.log("{}", 2u8);
2021-05-05 18:29:44 +03:00
}