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

Commit e89be00

Browse files
sjoelundOpenModelica-Hudson
authored andcommitted
Type-check arguments of function pointers
This fixes ticket:4786. Belonging to [master]: - #2283 - OpenModelica/OpenModelica-testsuite#878
1 parent 659c567 commit e89be00

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Compiler/FrontEnd/Types.mo

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1564,12 +1564,6 @@ algorithm
15641564
true = subtype(t1,t2,requireRecordNamesEqual);
15651565
then true;
15661566

1567-
case (DAE.T_FUNCTION(funcResultType = t1),t2)
1568-
then subtype(t1,t2,requireRecordNamesEqual);
1569-
1570-
case (t1,DAE.T_FUNCTION(funcResultType = t2))
1571-
then subtype(t1,t2,requireRecordNamesEqual);
1572-
15731567
case (DAE.T_FUNCTION_REFERENCE_VAR(functionType = t1),DAE.T_FUNCTION_REFERENCE_VAR(functionType = t2))
15741568
then subtype(t1,t2);
15751569

0 commit comments

Comments
 (0)