Skip to content

Commit

Permalink
Type-check arguments of function pointers
Browse files Browse the repository at this point in the history
This fixes ticket:4786.

Belonging to [master]:
  - OpenModelica/OMCompiler#2283
  - OpenModelica/OpenModelica-testsuite#878
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Mar 16, 2018
1 parent 659c567 commit e89be00
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Compiler/FrontEnd/Types.mo
Expand Up @@ -1564,12 +1564,6 @@ algorithm
true = subtype(t1,t2,requireRecordNamesEqual);
then true;

case (DAE.T_FUNCTION(funcResultType = t1),t2)
then subtype(t1,t2,requireRecordNamesEqual);

case (t1,DAE.T_FUNCTION(funcResultType = t2))
then subtype(t1,t2,requireRecordNamesEqual);

case (DAE.T_FUNCTION_REFERENCE_VAR(functionType = t1),DAE.T_FUNCTION_REFERENCE_VAR(functionType = t2))
then subtype(t1,t2);

Expand Down

0 comments on commit e89be00

Please sign in to comment.