File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -441,9 +441,13 @@ static void lookupDeclsFromProtocolsBeingConformedTo(
441
441
continue ;
442
442
}
443
443
if (auto *VD = dyn_cast<ValueDecl>(Member)) {
444
- if (TypeResolver)
444
+ if (TypeResolver) {
445
445
TypeResolver->resolveDeclSignature (VD);
446
-
446
+ if (!NormalConformance->hasWitness (VD) &&
447
+ (Conformance->getDeclContext ()->getParentSourceFile () !=
448
+ FromContext->getParentSourceFile ()))
449
+ TypeResolver->resolveWitness (NormalConformance, VD);
450
+ }
447
451
// Skip value requirements that have corresponding witnesses. This cuts
448
452
// down on duplicates.
449
453
if (!NormalConformance->hasWitness (VD) ||
Original file line number Diff line number Diff line change @@ -16,9 +16,6 @@ func testObjectExpr() {
16
16
// T1-NEXT: Keyword[self]/CurrNominal: self[#FooStruct#]; name=self
17
17
// T1-NEXT: Decl[InstanceVar]/CurrNominal: instanceVar[#Int#]{{; name=.+$}}
18
18
// T1-NEXT: Decl[InstanceMethod]/CurrNominal: instanceFunc0()[#Void#]{{; name=.+$}}
19
- //
20
- // FIX-ME(SR-7225): We shouldn't duplicate this.
21
- // T1-NEXT: Decl[InstanceVar]/Super: instanceVar[#Int#]{{; name=.+$}}
22
19
// T1-NEXT: End completions
23
20
24
21
func testGenericObjectExpr( ) {
@@ -28,9 +25,6 @@ func testGenericObjectExpr() {
28
25
// T2-NEXT: Keyword[self]/CurrNominal: self[#GenericFooStruct<Void>#]; name=self
29
26
// T2-NEXT: Decl[InstanceVar]/CurrNominal: instanceVar[#Int#]{{; name=.+$}}
30
27
// T2-NEXT: Decl[InstanceMethod]/CurrNominal: instanceFunc0()[#Void#]{{; name=.+$}}
31
- //
32
- // FIX-ME(SR-7225): We shouldn't duplicate this.
33
- // T2-NEXT: Decl[InstanceVar]/Super: instanceVar[#Int#]{{; name=.+$}}
34
28
// T2-NEXT: End completions
35
29
36
30
func topLevel1( ) {
You can’t perform that action at this time.
0 commit comments