zls icon indicating copy to clipboard operation
zls copied to clipboard

no decl literal completion in block break

Open nektro opened this issue 11 months ago • 0 comments

Zig Version

0.14.0-dev.2987+183bb8b08

ZLS Version

0.14.0-dev.366+d3d11a0

Client / Code Editor / Extensions

vscode

Steps to Reproduce and Observed Behavior

const S = struct {
    a: u32,

    fn init() S {
        return .{
            .a = 23,
        };
    }
};

test {
    const x: S = blk: {
        break :blk .<cursor>
    };
}

Expected Behavior

shows .a and .init()

Relevant log output


nektro avatar Feb 01 '25 08:02 nektro