diff --git a/src/main/java/com/intellij/plugins/haxe/model/type/HaxeExpressionEvaluator.java b/src/main/java/com/intellij/plugins/haxe/model/type/HaxeExpressionEvaluator.java index 1645c58c8..d097098d4 100644 --- a/src/main/java/com/intellij/plugins/haxe/model/type/HaxeExpressionEvaluator.java +++ b/src/main/java/com/intellij/plugins/haxe/model/type/HaxeExpressionEvaluator.java @@ -389,6 +389,10 @@ public void run() { typeHolder = SpecificHaxeClassReference.withGenerics( new HaxeClassReference(((HaxeClass)subelement).getModel(), element), resolver.getSpecifics()).createHolder(); } + else if (subelement instanceof HaxeMethodDeclaration methodDeclaration) { + SpecificFunctionReference type = methodDeclaration.getModel().getFunctionType(resolver); + typeHolder = type.createHolder(); + } else if (subelement instanceof AbstractHaxeNamedComponent) { typeHolder = HaxeTypeResolver.getFieldOrMethodReturnType((AbstractHaxeNamedComponent)subelement, resolver); }