Skip to content

Commit 7e854ef

Browse files
committed
[CSFix] Allow invalid decl references be diagnostic in ambiguity cases
1 parent 409aa35 commit 7e854ef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/swift/Sema/CSFix.h

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

20712071
bool diagnose(const Solution &solution, bool asNote = false) const override;
20722072

2073+
bool diagnoseForAmbiguity(CommonFixesArray commonFixes) const override {
2074+
return diagnose(*commonFixes.front().first);
2075+
}
2076+
20732077
static AllowRefToInvalidDecl *create(ConstraintSystem &cs,
20742078
ConstraintLocator *locator);
20752079
};

0 commit comments

Comments
 (0)