Skip to content

Commit 1dc6a0a

Browse files
committed
[Diagnostics] Allow invalid initializer ref diagnostics point to .init
1 parent cdee9a1 commit 1dc6a0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Sema/CSDiagnostics.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,6 +1140,8 @@ class InvalidInitRefFailure : public FailureDiagnostic {
11401140
const ConstructorDecl *Init;
11411141
SourceRange BaseRange;
11421142

1143+
Expr *getAnchor() const override { return getRawAnchor(); }
1144+
11431145
InvalidInitRefFailure(const Solution &solution, Type baseTy,
11441146
const ConstructorDecl *init, SourceRange baseRange,
11451147
ConstraintLocator *locator)

0 commit comments

Comments
 (0)