@@ -310,8 +310,7 @@ Type TypeResolution::resolveDependentMemberType(
310
310
}
311
311
}
312
312
313
- return TypeChecker::substMemberTypeWithBase (DC->getParentModule (), concrete,
314
- baseTy);
313
+ return TypeChecker::substMemberTypeWithBase (concrete, baseTy);
315
314
}
316
315
317
316
bool TypeResolution::areSameType (Type type1, Type type2) const {
@@ -580,7 +579,7 @@ Type TypeResolution::resolveTypeInContext(TypeDecl *typeDecl,
580
579
581
580
// Finally, substitute the base type into the member type.
582
581
return TypeChecker::substMemberTypeWithBase (
583
- fromDC-> getParentModule (), typeDecl, selfType, /* useArchetypes=*/ false );
582
+ typeDecl, selfType, /* useArchetypes=*/ false );
584
583
}
585
584
586
585
// / This function checks if a bound generic type is UnsafePointer<Void> or
@@ -1872,8 +1871,7 @@ static Type resolveQualifiedIdentTypeRepr(const TypeResolution &resolution,
1872
1871
// Phase 2: If a declaration has already been bound, use it.
1873
1872
if (auto *typeDecl = repr->getBoundDecl ()) {
1874
1873
auto memberType =
1875
- TypeChecker::substMemberTypeWithBase (DC->getParentModule (), typeDecl,
1876
- parentTy);
1874
+ TypeChecker::substMemberTypeWithBase (typeDecl, parentTy);
1877
1875
return maybeDiagnoseBadMemberType (typeDecl, memberType, nullptr );
1878
1876
}
1879
1877
@@ -5796,8 +5794,7 @@ NeverNullType TypeResolver::buildProtocolType(
5796
5794
return MetatypeType::get (instanceType, storedRepr);
5797
5795
}
5798
5796
5799
- Type TypeChecker::substMemberTypeWithBase (ModuleDecl *module ,
5800
- TypeDecl *member,
5797
+ Type TypeChecker::substMemberTypeWithBase (TypeDecl *member,
5801
5798
Type baseTy,
5802
5799
bool useArchetypes) {
5803
5800
Type sugaredBaseTy = baseTy;
0 commit comments