Skip to content

Commit

Permalink
Fix setting receiver type in Resolver setup
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 ee2c288 commit da307cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/lib/resolution/Resolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ Resolver::createForInitialSignature(Context* context, const Function* fn,
fn->thisFormal()->traverse(ret);
auto receiverType = ret.byPostorder.byAst(fn->thisFormal()).type();
if (receiverType.hasTypePtr()) {
if (auto ct = receiverType.type()->toCompositeType()) {
if (auto ct = receiverType.type()->getCompositeType()) {
ret.inCompositeType = ct;
}
ret.allowReceiverScopes = true;
Expand Down

0 comments on commit da307cc

Please sign in to comment.