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 967a8b4 commit f5212e7Copy full SHA for f5212e7
lib/AST/GenericSignature.cpp
@@ -729,7 +729,12 @@ int Requirement::compare(const Requirement &other) const {
729
return compareKind;
730
731
// We should only have multiple conformance requirements.
732
- assert(getKind() == RequirementKind::Conformance);
+ if (getKind() != RequirementKind::Conformance) {
733
+ llvm::errs() << "Unordered generic requirements\n";
734
+ llvm::errs() << "LHS: "; dump(llvm::errs()); llvm::errs() << "\n";
735
+ llvm::errs() << "RHS: "; other.dump(llvm::errs()); llvm::errs() << "\n";
736
+ abort();
737
+ }
738
739
int compareProtos =
740
TypeDecl::compare(getProtocolDecl(), other.getProtocolDecl());
0 commit comments