Skip to content

Commit

Permalink
attempt at fix wrong type returned for method references (ExpressionE…
Browse files Browse the repository at this point in the history
…valuator would resolve the return type, but since this is a reference and not a method call we want the functionType)
  • Loading branch information
m0rkeulv committed Jun 5, 2023
1 parent b13a116 commit a6be7d7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a6be7d7

Please sign in to comment.