File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -804,6 +804,10 @@ class UsePropertyWrapper final : public ConstraintFix {
804
804
805
805
bool diagnose (const Solution &solution, bool asNote = false ) const override ;
806
806
807
+ bool diagnoseForAmbiguity (CommonFixesArray commonFixes) const override {
808
+ return diagnose (*commonFixes.front ().first );
809
+ }
810
+
807
811
static UsePropertyWrapper *create (ConstraintSystem &cs, VarDecl *wrapped,
808
812
bool usingStorageWrapper, Type base,
809
813
Type wrapper, ConstraintLocator *locator);
@@ -831,6 +835,10 @@ class UseWrappedValue final : public ConstraintFix {
831
835
832
836
bool diagnose (const Solution &solution, bool asNote = false ) const override ;
833
837
838
+ bool diagnoseForAmbiguity (CommonFixesArray commonFixes) const override {
839
+ return diagnose (*commonFixes.front ().first );
840
+ }
841
+
834
842
static UseWrappedValue *create (ConstraintSystem &cs, VarDecl *propertyWrapper,
835
843
Type base, Type wrapper,
836
844
ConstraintLocator *locator);
You can’t perform that action at this time.
0 commit comments