https://bugs.kde.org/show_bug.cgi?id=376586

Kevin Funk <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |5.1.0

--- Comment #8 from Kevin Funk <[email protected]> ---
@robert: Does this patch in kdevelop.git fix your issue?

@steckdenis: Opinions?

diff --git a/languages/qmljs/duchain/declarationbuilder.cpp
b/languages/qmljs/duchain/declarationbuilder.cpp
index fb0cb5d..b1e2b0e 100644
--- a/languages/qmljs/duchain/declarationbuilder.cpp
+++ b/languages/qmljs/duchain/declarationbuilder.cpp
@@ -330,7 +330,7 @@ void
DeclarationBuilder::inferArgumentsFromCall(QmlJS::AST::Node* base, QmlJS::A

     auto func_declaration =
dynamic_cast<FunctionDeclaration*>(func_type->declaration(topContext()));

-    if (!func_declaration) {
+    if (!func_declaration || !func_declaration->internalContext()) {
         return;
     }

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to