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 a493004 commit c5ed8d6Copy full SHA for c5ed8d6
lib/Sema/CSDiagnostics.cpp
@@ -641,7 +641,7 @@ bool GenericArgumentsMismatchFailure::diagnoseAsError() {
641
switch (last.getKind()) {
642
case ConstraintLocator::ContextualType: {
643
auto purpose = getContextualTypePurpose();
644
- assert(!(purpose == CTP_Unused && purpose == CTP_CannotFail));
+ assert(!(purpose == CTP_Unused || purpose == CTP_CannotFail));
645
646
// If this is call to a closure e.g. `let _: A = { B() }()`
647
// let's point diagnostic to its result.
0 commit comments