leo/tests/compiler/function/duplicate_definition_fail.leo

16 lines
228 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
*/
function main(y: bool) -> bool {
2021-07-27 23:39:34 +03:00
console.log("{}", 1u8);
return y;
2021-04-07 20:20:58 +03:00
}
function main(y: bool) -> bool {
2021-07-28 21:53:45 +03:00
console.log("{}", 2u8);
return y;
2021-05-05 18:29:44 +03:00
}