File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -439,7 +439,7 @@ Type TypeBase::addCurriedSelfType(const DeclContext *dc) {
439
439
genericFn->getExtInfo ());
440
440
}
441
441
442
- auto selfTy = dc->getDeclaredInterfaceType ();
442
+ auto selfTy = dc->getSelfInterfaceType ();
443
443
auto selfParam = AnyFunctionType::Param (selfTy);
444
444
if (sig)
445
445
return GenericFunctionType::get (sig, {selfParam}, type);
Original file line number Diff line number Diff line change @@ -1851,12 +1851,11 @@ func testDeDuped(_ x: dedupS) {
1851
1851
x#^PROTOCOL_EXT_DEDUP_1^#
1852
1852
// FIXME: Should produce 3 items (?)
1853
1853
1854
- // PROTOCOL_EXT_DEDUP_1: Begin completions, 6 items
1854
+ // PROTOCOL_EXT_DEDUP_1: Begin completions, 5 items
1855
1855
// PROTOCOL_EXT_DEDUP_1: Decl[InstanceMethod]/CurrNominal: .foo()[#Int#]; name=foo()
1856
1856
// PROTOCOL_EXT_DEDUP_1: Decl[InstanceVar]/CurrNominal: .bar[#Int#]; name=bar
1857
1857
// PROTOCOL_EXT_DEDUP_1: Decl[Subscript]/CurrNominal: [{#Int#}][#Int#]; name=[Int]
1858
1858
// PROTOCOL_EXT_DEDUP_1: Decl[InstanceVar]/Super: .bar[#Int#]; name=bar
1859
- // PROTOCOL_EXT_DEDUP_1: Decl[Subscript]/Super: [{#Self.T#}][#Self.T#]; name=[Self.T]
1860
1859
// PROTOCOL_EXT_DEDUP_1: Keyword[self]/CurrNominal: .self[#dedupS#]; name=self
1861
1860
// PROTOCOL_EXT_DEDUP_1: End completions
1862
1861
}
You can’t perform that action at this time.
0 commit comments