aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSami Shalayel <[email protected]>2025-04-30 10:49:23 +0200
committerOlivier De Cannière <[email protected]>2025-05-16 17:00:07 +0200
commit0f993cbcb55d2b6898cd576db72a4dce6a0159f8 (patch)
tree73afc5da8737dfa5d4db41d0dbdfd786b4e77697
parent131cc998f7b504a4610e87825d8e54e0b1c953da (diff)
qqmljsfunctioninitializer: initialize all argument types
Initialize all argument types even if we already warned about the missing type annotation. This allows to get correct types in QQmlJSTypePropagator later on during linting. Amends 06577c9e80eb150b6b9e76e7805bfed1abbae82d. Pick-to: 6.9 Change-Id: Ieaad973f411d5b0f914561d95dfab72175563e15 Reviewed-by: Ulf Hermann <[email protected]> Reviewed-by: Fabian Kosmale <[email protected]>
-rw-r--r--src/qmlcompiler/qqmljsfunctioninitializer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qmlcompiler/qqmljsfunctioninitializer.cpp b/src/qmlcompiler/qqmljsfunctioninitializer.cpp
index f43660b76c..ae7dcf51d9 100644
--- a/src/qmlcompiler/qqmljsfunctioninitializer.cpp
+++ b/src/qmlcompiler/qqmljsfunctioninitializer.cpp
@@ -92,10 +92,10 @@ void QQmlJSFunctionInitializer::populateSignature(
} else {
if (!alreadyWarnedAboutMissingAnnotations) {
alreadyWarnedAboutMissingAnnotations = true;
- function->argumentTypes.append(
- m_typeResolver->namedType(m_typeResolver->varType()));
signatureError(u"Functions without type annotations won't be compiled"_s);
}
+ function->argumentTypes.append(
+ m_typeResolver->namedType(m_typeResolver->varType()));
}
}
} else {