File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
test/Incremental/Fingerprints/Inputs/extension-adds-member Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1034,6 +1034,11 @@ Optional<Fingerprint> IterableDeclContext::getBodyFingerprint() const {
1034
1034
1035
1035
bool IterableDeclContext::areTokensHashedForThisBodyInsteadOfInterfaceHash ()
1036
1036
const {
1037
+ // Do not keep separate hashes for extension bodies because the dependencies
1038
+ // can miss the addition of a member in an extension because there is nothing
1039
+ // corresponding to the fingerprinted nominal dependency node.
1040
+ if (isa<ExtensionDecl>(this ))
1041
+ return false ;
1037
1042
return true ;
1038
1043
}
1039
1044
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ struct A {
3
3
struct B {
4
4
}
5
5
extension A {
6
- init ( _ x: String = " " ) { }
6
+ var x : Int { 17 }
7
7
}
8
8
extension B {
9
9
}
You can’t perform that action at this time.
0 commit comments