diff options
| author | Bradley Lewis <22850972+BradLewis@users.noreply.github.com> | 2026-01-25 22:03:43 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-25 22:03:43 +1100 |
| commit | 7349330c3ff8dba777ff01dfcf284588c3b01471 (patch) | |
| tree | 8a61c701591d84c0d437e8d340d0967557c5317e /src/server | |
| parent | 6d117e7abc50050e1c7e9e141a0866587498e403 (diff) | |
| parent | 25fb7d45d18abf5a953a5d02ae446747035e0e24 (diff) | |
Merge pull request #1261 from BradLewis/fix/signature-labels-with-no-comp-lit
Fix signature labels displaying empty symbol in definitions after commas
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/analysis.odin | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/analysis.odin b/src/server/analysis.odin index 8e27d1e..000080d 100644 --- a/src/server/analysis.odin +++ b/src/server/analysis.odin @@ -2299,6 +2299,9 @@ internal_resolve_comp_literal :: proc( set_ast_package_set_scoped(ast_context, symbol.pkg) + if position_context.parent_comp_lit == nil { + return {}, false + } symbol, _ = resolve_type_comp_literal( ast_context, position_context, |