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 670ff7d commit 4c2a7bfCopy full SHA for 4c2a7bf
lib/Sema/CSDiagnostics.cpp
@@ -680,7 +680,7 @@ bool MissingConformanceFailure::diagnoseAsAmbiguousOperatorRef() {
680
// about missing conformance just in case.
681
auto operatorID = name.getIdentifier();
682
683
- auto *applyExpr = cast_or_null<ApplyExpr>(findParentExpr(anchor));
+ auto *applyExpr = cast<ApplyExpr>(findParentExpr(anchor));
684
if (auto *binaryOp = dyn_cast<BinaryExpr>(applyExpr)) {
685
auto lhsType = getType(binaryOp->getArg()->getElement(0));
686
auto rhsType = getType(binaryOp->getArg()->getElement(1));
0 commit comments