From 916c7408cc184edda0937be7438e5f6cdaf264b3 Mon Sep 17 00:00:00 2001 From: Michael Haselberger Date: Mon, 3 Feb 2025 16:51:10 +0000 Subject: [PATCH] nevermind --- compiler/plc_lowering/src/inheritance.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/plc_lowering/src/inheritance.rs b/compiler/plc_lowering/src/inheritance.rs index b715881aab..6811c1bc41 100644 --- a/compiler/plc_lowering/src/inheritance.rs +++ b/compiler/plc_lowering/src/inheritance.rs @@ -105,6 +105,7 @@ impl InheritanceLowerer { let access = match access { ReferenceAccess::Member(ast_node) => self.update_inheritance_chain(*std::mem::take(ast_node)), ReferenceAccess::Cast(ast_node) => { + // FIXME: we need to walk this :/ can't do it here because we cannot borrow self as mutable multiple times let location = ast_node.get_location(); let base = base.expect("Cast statement must have base"); return AstFactory::create_cast_statement( @@ -115,6 +116,7 @@ impl InheritanceLowerer { ); } ReferenceAccess::Index(ast_node) => { + // FIXME: we also need to walk this let location = ast_node.get_location(); return AstFactory::create_index_reference( std::mem::take(ast_node),