Skip to content

Commit d65ab09

Browse files
committed
Correct Incremental Extension Test
1 parent 39b966a commit d65ab09

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

lib/AST/DeclContext.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,11 +1024,6 @@ Optional<std::string> IterableDeclContext::getBodyFingerprint() const {
10241024

10251025
bool IterableDeclContext::areTokensHashedForThisBodyInsteadOfInterfaceHash()
10261026
const {
1027-
// Do not keep separate hashes for extension bodies because the dependencies
1028-
// can miss the addition of a member in an extension because there is nothing
1029-
// corresponding to the fingerprinted nominal dependency node.
1030-
if (isa<ExtensionDecl>(this))
1031-
return false;
10321027
return true;
10331028
}
10341029

test/Incremental/Fingerprints/Inputs/extension-adds-member/definesAB-after.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ struct A {
33
struct B {
44
}
55
extension A {
6-
var x: Int {17}
6+
init(_ x: String = "") {}
77
}
88
extension B {
99
}

0 commit comments

Comments
 (0)