@@ -487,8 +487,8 @@ class ContextualMismatch : public ConstraintFix {
487
487
: ConstraintFix(cs, FixKind::ContextualMismatch, locator), LHS(lhs),
488
488
RHS (rhs) {}
489
489
ContextualMismatch (ConstraintSystem &cs, FixKind kind, Type lhs, Type rhs,
490
- ConstraintLocator *locator)
491
- : ConstraintFix(cs, kind, locator), LHS(lhs), RHS(rhs) {}
490
+ ConstraintLocator *locator, bool warning = false )
491
+ : ConstraintFix(cs, kind, locator, warning ), LHS(lhs), RHS(rhs) {}
492
492
493
493
public:
494
494
std::string getName () const override { return " fix contextual mismatch" ; }
@@ -1347,8 +1347,9 @@ class AllowArgumentMismatch : public ContextualMismatch {
1347
1347
paramType, locator) {}
1348
1348
1349
1349
AllowArgumentMismatch (ConstraintSystem &cs, FixKind kind, Type argType,
1350
- Type paramType, ConstraintLocator *locator)
1351
- : ContextualMismatch(cs, kind, argType, paramType, locator) {}
1350
+ Type paramType, ConstraintLocator *locator,
1351
+ bool warning = false )
1352
+ : ContextualMismatch(cs, kind, argType, paramType, locator, warning) {}
1352
1353
1353
1354
public:
1354
1355
std::string getName () const override {
0 commit comments