File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -272,7 +272,6 @@ struct SynthesizedExtensionAnalyzer::Implementation {
272
272
if (Arg.isNull ())
273
273
return GenericType;
274
274
Arguments.push_back (Arg);
275
-
276
275
auto GenericParams = NTD->getInnermostGenericParamTypes ();
277
276
assert (Arguments.size () == GenericParams.size ());
278
277
TypeSubstitutionMap Map;
@@ -281,7 +280,8 @@ struct SynthesizedExtensionAnalyzer::Implementation {
281
280
Map[(*It)->getCanonicalType ()->castTo <SubstitutableType>()] =
282
281
Arguments[Index];
283
282
}
284
- return NTD->getDeclaredTypeInContext ().subst (DC->getParentModule (), Map, None);
283
+ auto MType = NTD->getInterfaceType ().subst (DC->getParentModule (), Map, None);
284
+ return MType->getAs <AnyMetatypeType>()->getInstanceType ();
285
285
}
286
286
287
287
SynthesizedExtensionInfo isApplicable (ExtensionDecl *Ext) {
Original file line number Diff line number Diff line change @@ -84,3 +84,4 @@ func foo(x: _PointerType) {} // Checks that this protocol actually exists.
84
84
// RUN: %target-swift-ide-test -print-module -module-group "Collection/Type-erased" -synthesize-extension -module-to-print=Swift -source-filename %s -print-interface | FileCheck %s -check-prefix=CHECK-FREQUENT-WORD
85
85
86
86
// CHECK-FREQUENT-WORD: ///
87
+ // CHECK-FREQUENT-WORD-NOT: where Slice<Dictionary<Key, Value>> == Slice<Self>
You can’t perform that action at this time.
0 commit comments