@@ -3808,8 +3808,7 @@ static void validateResultType(ValueDecl *decl,
3808
3808
: ErrorType::get (decl->getASTContext ()));
3809
3809
} else {
3810
3810
auto *dc = decl->getInnermostDeclContext ();
3811
- auto resolution = TypeResolution::forInterface (
3812
- dc, dc->getGenericSignatureOfContext ());
3811
+ auto resolution = TypeResolution::forInterface (dc);
3813
3812
TypeChecker::validateType (dc->getASTContext (),
3814
3813
resultTyLoc, resolution,
3815
3814
TypeResolverContext::FunctionResult);
@@ -4074,8 +4073,7 @@ void TypeChecker::validateDecl(ValueDecl *D) {
4074
4073
4075
4074
// We want the function to be available for name lookup as soon
4076
4075
// as it has a valid interface type.
4077
- auto resolution = TypeResolution::forInterface (FD,
4078
- FD->getGenericSignature ());
4076
+ auto resolution = TypeResolution::forInterface (FD);
4079
4077
typeCheckParameterList (FD->getParameters (), resolution,
4080
4078
TypeResolverContext::AbstractFunctionDecl);
4081
4079
validateResultType (FD, FD->getBodyResultTypeLoc ());
@@ -4114,7 +4112,7 @@ void TypeChecker::validateDecl(ValueDecl *D) {
4114
4112
4115
4113
DeclValidationRAII IBV (CD);
4116
4114
4117
- auto res = TypeResolution::forInterface (CD, CD-> getGenericSignature () );
4115
+ auto res = TypeResolution::forInterface (CD);
4118
4116
typeCheckParameterList (CD->getParameters (), res,
4119
4117
TypeResolverContext::AbstractFunctionDecl);
4120
4118
CD->computeType ();
@@ -4126,7 +4124,7 @@ void TypeChecker::validateDecl(ValueDecl *D) {
4126
4124
4127
4125
DeclValidationRAII IBV (DD);
4128
4126
4129
- auto res = TypeResolution::forInterface (DD, DD-> getGenericSignature () );
4127
+ auto res = TypeResolution::forInterface (DD);
4130
4128
typeCheckParameterList (DD->getParameters (), res,
4131
4129
TypeResolverContext::AbstractFunctionDecl);
4132
4130
DD->computeType ();
@@ -4138,7 +4136,7 @@ void TypeChecker::validateDecl(ValueDecl *D) {
4138
4136
4139
4137
DeclValidationRAII IBV (SD);
4140
4138
4141
- auto res = TypeResolution::forInterface (SD, SD-> getGenericSignature () );
4139
+ auto res = TypeResolution::forInterface (SD);
4142
4140
typeCheckParameterList (SD->getIndices (), res,
4143
4141
TypeResolverContext::SubscriptDecl);
4144
4142
validateResultType (SD, SD->getElementTypeLoc ());
@@ -4154,7 +4152,7 @@ void TypeChecker::validateDecl(ValueDecl *D) {
4154
4152
DeclValidationRAII IBV (EED);
4155
4153
4156
4154
if (auto *PL = EED->getParameterList ()) {
4157
- auto res = TypeResolution::forInterface (ED, ED-> getGenericSignature () );
4155
+ auto res = TypeResolution::forInterface (ED);
4158
4156
typeCheckParameterList (PL, res,
4159
4157
TypeResolverContext::EnumElementDecl);
4160
4158
}
0 commit comments