Skip to content

Commit 7641d9c

Browse files
committed
[CSFix] Make it possible to diagnose r-value -> l-value fix for ambiguity
1 parent d9594c7 commit 7641d9c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Sema/CSFix.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,10 @@ class TreatRValueAsLValue final : public ConstraintFix {
369369

370370
bool diagnose(const Solution &solution, bool asNote = false) const override;
371371

372+
bool diagnoseForAmbiguity(CommonFixesArray commonFixes) const override {
373+
return diagnose(*commonFixes.front().first);
374+
}
375+
372376
static TreatRValueAsLValue *create(ConstraintSystem &cs,
373377
ConstraintLocator *locator);
374378
};

0 commit comments

Comments
 (0)