Apply diagnostic message suggestion

This commit is contained in:
Luciano Almeida
2019-08-09 23:47:42 -03:00
parent df14698efd
commit a7b5f714e4
3 changed files with 3 additions and 4 deletions

View File

@@ -2319,7 +2319,6 @@ bool MissingMemberFailure::diagnoseAsError() {
diagnostic.highlight(baseExpr->getSourceRange())
.highlight(nameLoc.getSourceRange());
correction->addFixits(diagnostic);
} else {
auto diagnostic = emitDiagnostic(
anchor->getLoc(),