-
-
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 behavior
Milestone
Description
pub fn List(comptime T: type) type {
return u32;
}
const ElementList = List(Element);
const Element = struct {
link: ElementList,
};
export fn entry() void {
const listType = ElementList;
}/home/andrea/Programming/test4.zig:5:1: error: 'ElementList' depends on itself
const ElementList = List(Element);
But if we just expand ElementList once inside Element, the dependency loop goes away.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior