-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorstage1The process of building from source via WebAssembly and the C backend.The process of building from source via WebAssembly and the C backend.
Milestone
Description
Minimal Repro (tested with 0.5.0 compiler) :
const DrawCallback = fn (cmd: *DrawCmd) void;
const DrawCmd = struct {
UserCallback: DrawCallback,
};
test "bork" {
//var x: DrawCmd = undefined;
_ = @typeInfo(@This());
}
Compiling this yields this error:
C:\bork.zig:4:19: error: dependency loop detected
C:\bork.zig:1:22: note: referenced here
C:\bork.zig:1:1: note: referenced here
C:\bork.zig:9:9: note: referenced here
If I uncomment the first line in the test block, the program compiles successfully.
(edit: even more minimal test case)
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorstage1The process of building from source via WebAssembly and the C backend.The process of building from source via WebAssembly and the C backend.