aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/qmlcompiler/qqmljsshadowcheck.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qmlcompiler/qqmljsshadowcheck.cpp b/src/qmlcompiler/qqmljsshadowcheck.cpp
index cce320f27d..5b07140490 100644
--- a/src/qmlcompiler/qqmljsshadowcheck.cpp
+++ b/src/qmlcompiler/qqmljsshadowcheck.cpp
@@ -137,8 +137,7 @@ void QQmlJSShadowCheck::checkShadowing(
}
m_logger->log(
- u"Member %1 of %2 can be shadowed"_s.arg(
- memberName, m_state.accumulatorIn().descriptiveName()),
+ u"Member %1 of %2 can be shadowed"_s.arg(memberName, baseType.descriptiveName()),
qmlCompiler, currentSourceLocation());
// Make it "var". We don't know what it is.