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.
1 parent d10b3f8 commit 72bda97Copy full SHA for 72bda97
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