Skip to content

Commit

Permalink
Fix comp literals where type is specified through value decl and not …
Browse files Browse the repository at this point in the history
…comp lit
  • Loading branch information
DanielGavin committed Dec 25, 2024
1 parent be1f519 commit 8520e39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/analysis.odin
Original file line number Diff line number Diff line change
Expand Up @@ -1617,6 +1617,8 @@ resolve_comp_literal :: proc(
position_context.function.type.results.list[return_index].type,
) or_return
}
} else if ast_context.value_decl.type != nil {
symbol = resolve_type_expression(ast_context, ast_context.value_decl.type) or_return
}

set_ast_package_set_scoped(ast_context, symbol.pkg)
Expand Down

0 comments on commit 8520e39

Please sign in to comment.