From ec0fb1945eda03e79ea5dd498b54ba9915e84588 Mon Sep 17 00:00:00 2001 From: Harold Brenes Date: Thu, 1 May 2025 11:49:57 -0400 Subject: Allow parapoly fake methods to be resolved --- src/common/ast.odin | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/common/ast.odin b/src/common/ast.odin index 1957f3a..025fab0 100644 --- a/src/common/ast.odin +++ b/src/common/ast.odin @@ -184,6 +184,13 @@ unwrap_pointer_ident :: proc(expr: ^ast.Expr) -> (ast.Ident, int, bool) { } } + // Check for parapoly self + if expr != nil { + if call, ok := expr.derived.(^ast.Call_Expr); ok { + expr = call.expr + } + } + if expr != nil { if ident, ok := expr.derived.(^ast.Ident); ok { return ident^, n, ok -- cgit v1.2.3