We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b748920 commit ce324d3Copy full SHA for ce324d3
lib/Sema/CSDiagnostics.cpp
@@ -3317,8 +3317,8 @@ bool MissingMemberFailure::diagnoseAsError() {
3317
emitBasicError(baseType);
3318
}
3319
} else if (auto moduleTy = baseType->getAs<ModuleType>()) {
3320
- emitDiagnostic(diag::no_member_of_module, moduleTy->getModule()->getName(),
3321
- getName())
+ emitDiagnosticAt(baseExpr->getLoc(), diag::no_member_of_module,
+ moduleTy->getModule()->getName(), getName())
3322
.highlight(getSourceRange())
3323
.highlight(nameLoc.getSourceRange());
3324
return true;
0 commit comments