Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 5aa5373

Browse files
sjoelundOpenModelica-Hudson
authored andcommitted
Resolve polymorphic bindings in the the function type
Partially evaluated functions use elabTypes to generate the type signature of the argument; this needs to resolve polymorphic bindings in order to type-check subsequent expressions. Belonging to [master]: - #2283 - OpenModelica/OpenModelica-testsuite#878
1 parent cccd62d commit 5aa5373

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Compiler/FrontEnd/Static.mo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8566,6 +8566,7 @@ algorithm
85668566
outDimensions := slotsVectorizable(outSlots, inInfo);
85678567
outResultType := res_ty;
85688568
outFunctionType := DAE.T_FUNCTION(params, outResultType, func_attr, path);
8569+
outFunctionType := Types.fixPolymorphicRestype(outFunctionType, pb, inInfo);
85698570

85708571
// Only created when not checking types for error msg.
85718572
outFunctionType := createActualFunctype(outFunctionType, outSlots, inCheckTypes);

0 commit comments

Comments
 (0)