We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1456867 + 72bda97 commit 29f9c75Copy full SHA for 29f9c75
lib/Sema/AssociatedTypeInference.cpp
@@ -2126,13 +2126,13 @@ AssociatedTypeInference::inferTypeWitnessesViaAssociatedType(
2126
!witnessHasImplementsAttrForRequiredName(typeDecl, assocType))
2127
continue;
2128
2129
- if (typeDecl->isInvalid()) {
+ if (typeDecl->isRecursiveValidation()) {
2130
LLVM_DEBUG(llvm::dbgs() << "Recursive validation\n";);
2131
2132
}
2133
2134
- if (typeDecl->isRecursiveValidation()) {
2135
- LLVM_DEBUG(llvm::dbgs() << "Recursive validation\n";);
+ if (typeDecl->isInvalid()) {
+ LLVM_DEBUG(llvm::dbgs() << "Invalid type witness\n";);
2136
2137
2138
0 commit comments