zig/test/standalone/main_pkg_path/a/test.zig
Andrew Kelley 67b4de33d2
compile error for import outside package path
closes #2024

there's a new cli option `--main-pkg-path` which you can use to choose
a different root package directory besides the one inferred from the
root source file

and a corresponding build.zig API:
foo.setMainPkgPath(path)
2019-03-02 10:38:27 -05:00

6 lines
70 B
Zig

const b = @import("../b.zig");
test "main pkg path" {
b.foo();
}