mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 23:52:31 +00:00
14 lines
272 B
Zig
14 lines
272 B
Zig
const a_namespace = @import("cases/import/a_namespace.zig");
|
|
|
|
fn callFnViaNamespaceLookup() {
|
|
@setFnTest(this);
|
|
|
|
assert(a_namespace.foo() == 1234);
|
|
}
|
|
|
|
// TODO const assert = @import("std").debug.assert;
|
|
fn assert(ok: bool) {
|
|
if (!ok)
|
|
@unreachable();
|
|
}
|