File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -1279,12 +1279,6 @@ ConstraintSystem::getTypeOfMemberReference(
1279
1279
// For a static member referenced through a metatype or an instance
1280
1280
// member referenced through an instance, strip off the 'self'.
1281
1281
type = openedFnType->getResult ();
1282
- } else if (isDynamicResult && isa<AbstractFunctionDecl>(value)) {
1283
- // For a dynamic result referring to an instance function through
1284
- // an object of metatype type, replace the 'Self' parameter with
1285
- // a AnyObject member.
1286
- auto anyObjectTy = TC.Context .getAnyObjectType ();
1287
- type = openedFnType->replaceSelfParameterType (anyObjectTy);
1288
1282
} else {
1289
1283
// For an unbound instance method reference, replace the 'Self'
1290
1284
// parameter with the base type.
You can’t perform that action at this time.
0 commit comments