Skip to content

Commit

Permalink
Resolve polymorphic bindings in the the function type
Browse files Browse the repository at this point in the history
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]:
  - OpenModelica/OMCompiler#2283
  - OpenModelica/OpenModelica-testsuite#878
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Mar 16, 2018
1 parent cccd62d commit 5aa5373
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Compiler/FrontEnd/Static.mo
Expand Up @@ -8566,6 +8566,7 @@ algorithm
outDimensions := slotsVectorizable(outSlots, inInfo);
outResultType := res_ty;
outFunctionType := DAE.T_FUNCTION(params, outResultType, func_attr, path);
outFunctionType := Types.fixPolymorphicRestype(outFunctionType, pb, inInfo);

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

0 comments on commit 5aa5373

Please sign in to comment.