Skip to content

Commit

Permalink
- Most of the partial function tests now work again
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5410 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Stefan Brus committed Apr 28, 2010
1 parent 5601107 commit ec52821
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Compiler/Static.mo
Expand Up @@ -8483,7 +8483,17 @@ algorithm
(cache,env,_,dae) = Inst.implicitFunctionInstantiation(cache,env,InnerOuter.emptyInstHierarchy,DAE.NOMOD(),Prefix.NOPRE(),Connect.emptySet,cl,{});
dae = DAEUtil.addDaeFunction(dae);
then (cache,dae);


/* Call to function reference variable */
case(cache,env,name,false,NONE)
local
DAE.ComponentRef cref;
equation
cref = pathToComponentRef(name);
(cache,_,(DAE.T_FUNCTION(funcArg = _),_),_,_,_,env) = Lookup.lookupVar(cache,env,cref);
dae = DAEUtil.emptyDae;
then (cache,dae);

case(cache,env,name,_,_)
equation
print("instantiateDaeFunction failed for "+&Absyn.pathString(name)+&" in scope: " +& Env.printEnvPathStr(env) +& "\n");
Expand Down

0 comments on commit ec52821

Please sign in to comment.