zig/test/behavior/usingnamespace/foo.zig
Andrew Kelley cca57042df std: fix regressions from this branch
Also move some usingnamespace test cases from compare_output to
behavior.
2021-09-01 17:54:07 -07:00

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;
}