Skip to content

Commit

Permalink
nevermind
Browse files Browse the repository at this point in the history
  • Loading branch information
mhasel committed Feb 3, 2025
1 parent 3e5e9ff commit 916c740
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/plc_lowering/src/inheritance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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),
Expand Down

0 comments on commit 916c740

Please sign in to comment.