zig/test/cases/compile_errors/multiple_function_definitions.zig
Eric Joldasov 50339f595a all: zig fmt and rename "@XToY" to "@YFromX"
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2023-06-19 12:34:42 -07:00

13 lines
189 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