Skip to content

Incorrect dependency loop from struct default value #14005

@Vexu

Description

@Vexu

Found in bun:

const S = struct {
    s: *S = &S.instance,
    var instance: S = undefined;
};
comptime {
    _ = S.instance;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions