Skip to content

Commit

Permalink
- Some fixes for evaluating bindings
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@13901 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Nov 15, 2012
1 parent a60c178 commit adaad1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Compiler/FrontEnd/Inst.mo
Original file line number Diff line number Diff line change
Expand Up @@ -8723,6 +8723,9 @@ algorithm
list<DAE.Element> restDae2;
DAE.Exp newBindExp;

case (_,DAE.DAE({})) then inDae1;
case (DAE.DAE({}),_) then inDae2;

case (DAE.DAE(DAE.EQUATION(scalar = newBindExp)::{}),DAE.DAE(DAE.VAR(cref, kind, dir, prl, vis, ty, bind, dims, ct, src, varAttOpt, commOpt, inOut)::{}))
then (DAE.DAE({DAE.VAR(cref, kind, dir, prl, vis, ty, SOME(newBindExp), dims, ct, src, varAttOpt, commOpt, inOut)}));

Expand Down
1 change: 1 addition & 0 deletions Compiler/Script/CevalScript.mo
Original file line number Diff line number Diff line change
Expand Up @@ -6688,6 +6688,7 @@ algorithm
case (cache, env, fpath)
equation
true = System.getPartialInstantiation();
(_, SCode.CLASS(prefixes = SCode.PREFIXES(replaceablePrefix=SCode.REPLACEABLE(cc=_))), _) = Lookup.lookupClass(cache, env, fpath, false);
then
false;

Expand Down

0 comments on commit adaad1d

Please sign in to comment.