mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
15 lines
300 B
Zig
15 lines
300 B
Zig
// purposefully conflicting function with main source file
|
|
// but it's private so it should be OK
|
|
fn privateFunction() bool {
|
|
return false;
|
|
}
|
|
|
|
pub fn printText() bool {
|
|
return privateFunction();
|
|
}
|
|
|
|
pub var saw_foo_function = false;
|
|
pub fn foo_function() void {
|
|
saw_foo_function = true;
|
|
}
|