Skip to content

Commit

Permalink
Fix use of wrong handle for struct init completions (#1432)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperAuguste authored Sep 5, 2023
1 parent f9a1f6f commit 7aeb758
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/completions.zig
Original file line number Diff line number Diff line change
Expand Up @@ -958,11 +958,11 @@ fn resolveContainer(
.other => |n| n,
else => continue,
};
if (ast.isContainer(symbol_decl.handle.tree, node))
if (ast.isContainer(either.handle.tree, node))
try types_with_handles.append(
arena,
Analyser.TypeWithHandle{
.handle = symbol_decl.handle,
.handle = either.handle,
.type = .{
.data = .{ .other = node },
.is_type_val = true,
Expand Down

0 comments on commit 7aeb758

Please sign in to comment.