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 e0e246a commit 30b09c9Copy full SHA for 30b09c9
lib/AST/RequirementMachine/Diagnostics.cpp
@@ -109,11 +109,12 @@ bool swift::rewriting::diagnoseRequirementErrors(
109
if (error.requirement.hasError())
110
break;
111
112
+ assert(error.requirement.getKind() == RequirementKind::Conformance);
113
+
114
auto subjectType = error.requirement.getFirstType();
115
auto constraintType = error.requirement.getSecondType();
116
117
assert(constraintType->is<InverseType>());
- assert(error.requirement.getKind() == RequirementKind::Conformance);
118
119
ctx.Diags.diagnose(loc, diag::requires_not_suitable_inverse_subject,
120
subjectType, constraintType);
0 commit comments