We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78bcb2e commit e599c8bCopy full SHA for e599c8b
lib/Sema/CSApply.cpp
@@ -4521,14 +4521,8 @@ namespace {
4521
auto subscript = cast<SubscriptDecl>(overload.choice.getDecl());
4522
assert(!subscript->isGetterMutating());
4523
4524
- auto indexType = AnyFunctionType::composeInput(
4525
- cs.getASTContext(),
4526
- subscript->getInterfaceType()->castTo<AnyFunctionType>()->getParams(),
4527
- /*canonicalVararg=*/false);
4528
-
4529
// Compute substitutions to refer to the member.
4530
auto ref = resolveConcreteDeclRef(subscript, locator);
4531
- indexType = indexType.subst(ref.getSubstitutions());
4532
4533
// If this is a @dynamicMemberLookup reference to resolve a property
4534
// through the subscript(dynamicMember:) member, restore the
0 commit comments