mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Sema: Fix module interface printing of inherited generic initializers
Make sure we use the sugared form of GenericTypeParamType and not the canonical type. Fixes <rdar://problem/58578998>.
This commit is contained in:
@@ -411,10 +411,8 @@ configureGenericDesignatedInitOverride(ASTContext &ctx,
|
||||
auto *gp = cast<GenericTypeParamType>(type);
|
||||
if (gp->getDepth() < superclassDepth)
|
||||
return Type(gp).subst(subMap);
|
||||
return CanGenericTypeParamType::get(
|
||||
gp->getDepth() - superclassDepth + depth,
|
||||
gp->getIndex(),
|
||||
ctx);
|
||||
return genericParams->getParams()[gp->getIndex()]
|
||||
->getDeclaredInterfaceType();
|
||||
};
|
||||
|
||||
auto lookupConformanceFn =
|
||||
|
||||
Reference in New Issue
Block a user