Skip to content

Commit

Permalink
Fix setting instantiated receiver type in instantiateSignature
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Rift <[email protected]>
  • Loading branch information
riftEmber committed Sep 13, 2024
1 parent 2350ab3 commit 4897b75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/lib/resolution/resolution-queries.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2284,7 +2284,7 @@ ApplicabilityResult instantiateSignature(Context* context,
//
// Also recompute receiver scopes based on the instantiated type so
// that we correctly resolve the types of field identifiers.
visitor.setCompositeType(formalType.type()->toCompositeType());
visitor.setCompositeType(formalType.type()->getCompositeType());
visitor.receiverScopesComputed = false;
}
}
Expand Down

0 comments on commit 4897b75

Please sign in to comment.