You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, only if the type is actually specified, change the second line to this and it's fine again:
var next = &next_action;
copygirl
changed the title
Dependency loop caused by test declaration
Dependency loop caused by explicit mentioning of function pointer type
Aug 23, 2023
I also have a larger codebase where I wrap some C code where this issue occurs. Sometimes. Seemingly randomly. Practically the same code compiled earlier and now that I made some seemingly unrelated changes, the dependency loop error is back.
Zig Version
0.11.0
Steps to Reproduce and Observed Behavior
With the following zig code:
Running
zig run
yields the expected output:However when running
zig test
(here with-freference-trace
), I get a dependency loop error:Expected Behavior
No dependency loop.
The text was updated successfully, but these errors were encountered: