diff options
| author | Bradley Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-26 22:10:32 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-26 22:10:32 -0400 |
| commit | b9587954c99bb2186deeccb1413f0127241db130 (patch) | |
| tree | da95d6bc4eda915d0aa4526c5b936b9178ebed99 /src | |
| parent | 9220ce9664661abda2c08e20436de7e8ee3a6583 (diff) | |
| parent | 8dee06afd7c1883e57b2ffc88473a403d39d4a6f (diff) | |
Merge pull request #786 from BradLewis/fix/resolve-enum-explicit-type
Correctly resolve enum value_decl
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/analysis.odin | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/analysis.odin b/src/server/analysis.odin index 91fa2c1..6cbc14d 100644 --- a/src/server/analysis.odin +++ b/src/server/analysis.odin @@ -2283,6 +2283,12 @@ resolve_implicit_selector :: proc( } } + if position_context.value_decl != nil { + if symbol, ok := resolve_type_expression(ast_context, position_context.value_decl.type); ok { + return symbol, ok + } + } + return {}, false } |