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

Commit 852d89e

Browse files
perostOpenModelica-Hudson
authored andcommitted
[NF] Fix operator overloading.
- Ignore non-binary operators when implicitly matching arguments. Belonging to [master]: - #2902
1 parent 8fcf925 commit 852d89e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Compiler/NFFrontEnd/NFTypeCheck.mo

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,10 @@ protected
712712
algorithm
713713
exp1 := inExp1; exp2 := inExp2;
714714
for fn in candidates loop
715+
if listLength(fn.inputs) <> 2 then
716+
continue;
717+
end if;
718+
715719
in1 :: in2 :: _ := fn.inputs;
716720
arg1_ty := InstNode.getType(in1);
717721
arg2_ty := InstNode.getType(in2);

0 commit comments

Comments
 (0)