Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when testing a file struct, it references an instance of the struct which is not needed. #8146

Open
g-w1 opened this issue Mar 4, 2021 · 0 comments
Labels
bug Observed behavior contradicts documented or intended behavior stage1 The process of building from source via WebAssembly and the C backend.
Milestone

Comments

@g-w1
Copy link
Contributor

g-w1 commented Mar 4, 2021

const Compilation = @import("Compilation.zig");

d: Compilation.Directory,


test "thing" {
    
}
./test.zig:1:21: error: unable to find 'Compilation.zig'
const Compilation = @import("Compilation.zig");
                    ^
./test.zig:3:4: note: referenced here
d: Compilation.Directory,
   ^

Running zig test on this file fails even though none of the tests reference @this() or Compilation.

@Vexu Vexu added bug Observed behavior contradicts documented or intended behavior stage1 The process of building from source via WebAssembly and the C backend. labels Mar 5, 2021
@Vexu Vexu added this to the 0.9.0 milestone Mar 5, 2021
@andrewrk andrewrk modified the milestones: 0.9.0, 0.10.0 May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior stage1 The process of building from source via WebAssembly and the C backend.
Projects
None yet
3 participants