zig/test/cases/compile_errors/multiple_function_definitions.zig
2022-06-30 09:57:38 +02:00

11 lines
185 B
Zig

fn a() void {}
fn a() void {}
export fn entry() void { a(); }
// error
// backend=stage2
// target=native
//
// :2:1: error: redeclaration of 'a'
// :1:1: note: other declaration here