diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-11-17 05:45:45 -0500 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-11-17 05:45:45 -0500 |
| commit | 2661d6f23fb419998d64fa968a885884146792cb (patch) | |
| tree | 7f36f361024634c9a47ff4505f236b80f7e85bcd /src | |
| parent | 161ce3ea1419517da6f7752acba9e4d02f2c4d4b (diff) | |
Add missing unary expr operands
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/analysis.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/analysis.odin b/src/server/analysis.odin index c9a6275..5cd42e3 100644 --- a/src/server/analysis.odin +++ b/src/server/analysis.odin @@ -1226,7 +1226,7 @@ internal_resolve_type_expression :: proc(ast_context: ^AstContext, node: ^ast.Ex ok := internal_resolve_type_expression(ast_context, v.expr, out) if v.op.kind == .And { out.pointers += 1 - } else if v.op.kind == .Sub || v.op.kind == .Add { + } else if v.op.kind == .Sub || v.op.kind == .Add || v.op.kind == .Not || v.op.kind == .Xor { if value, ok := out.value.(SymbolProcedureValue); ok { if len(value.return_types) > 0 { type := value.return_types[0].type |