zls icon indicating copy to clipboard operation
zls copied to clipboard

Nested structs don't get the completion popup

Open andreakarasho opened this issue 1 year ago • 1 comments


const TestStr = struct {
    const StrInside = struct {
        a: f32,
        b: f32,
    };

    fn func() void {
        var str = StrInside{
            . // ---> shows nothing. Should display `a` or `b`
        };
    }
};

andreakarasho avatar Oct 24 '23 14:10 andreakarasho

This boils down to the same issue as #1535 just applied to struct inits. This may be fixed by #1536.

Techatrix avatar Oct 24 '23 14:10 Techatrix