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

Commit

Permalink
[NF] Fix operator overloading.
Browse files Browse the repository at this point in the history
- Ignore non-binary operators when implicitly matching arguments.

Belonging to [master]:
  - #2902
  • Loading branch information
perost authored and OpenModelica-Hudson committed Jan 28, 2019
1 parent 8fcf925 commit 852d89e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Compiler/NFFrontEnd/NFTypeCheck.mo
Expand Up @@ -712,6 +712,10 @@ protected
algorithm
exp1 := inExp1; exp2 := inExp2;
for fn in candidates loop
if listLength(fn.inputs) <> 2 then
continue;
end if;

in1 :: in2 :: _ := fn.inputs;
arg1_ty := InstNode.getType(in1);
arg2_ty := InstNode.getType(in2);
Expand Down

0 comments on commit 852d89e

Please sign in to comment.