mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Sema: Replace calls to subst() on a GenericFunctionType with substGenericArgs()
This commit is contained in:
@@ -666,7 +666,9 @@ synthesizeDesignatedInitOverride(AbstractFunctionDecl *fn, void *context) {
|
||||
.subst(subs);
|
||||
ConcreteDeclRef ctorRef(superclassCtor, subs);
|
||||
|
||||
auto type = superclassCtor->getInitializerInterfaceType().subst(subs);
|
||||
auto type = superclassCtor->getInitializerInterfaceType();
|
||||
if (auto *genericFnType = type->getAs<GenericFunctionType>())
|
||||
type = genericFnType->substGenericArgs(subs);
|
||||
auto *ctorRefExpr =
|
||||
new (ctx) OtherConstructorDeclRefExpr(ctorRef, DeclNameLoc(),
|
||||
IsImplicit, type);
|
||||
|
||||
Reference in New Issue
Block a user