Skip to content

Commit

Permalink
Fixed MC bug #588
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@2362 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Peter Aronsson committed May 11, 2006
1 parent 6be39ae commit 72a449e
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions Compiler/Interactive.mo
Expand Up @@ -3955,13 +3955,19 @@ protected function getClassEnv "function: getClassEnv
SCode.Restriction restr;
ClassInf.State ci_state;
algorithm
p_1 := SCode.elaborate(p);
env := Inst.makeEnvFromProgram(p_1, Absyn.IDENT(""));
((cl as SCode.CLASS(id,_,encflag,restr,_)),env_1) := Lookup.lookupClass(env, p_class, false);
env2 := Env.openScope(env_1, encflag, SOME(id));
ci_state := ClassInf.start(restr, id);
(env_2,_) := Inst.partialInstClassIn(env2, Types.NOMOD(), Prefix.NOPRE(), Connect.emptySet,
env_2 := matchcontinue (p,p_class)
case (p,p_class)
equation
p_1 = SCode.elaborate(p);
env = Inst.makeEnvFromProgram(p_1, Absyn.IDENT(""));
((cl as SCode.CLASS(id,_,encflag,restr,_)),env_1) = Lookup.lookupClass(env, p_class, false);
env2 = Env.openScope(env_1, encflag, SOME(id));
ci_state = ClassInf.start(restr, id);
(env_2,_) = Inst.partialInstClassIn(env2, Types.NOMOD(), Prefix.NOPRE(), Connect.emptySet,
ci_state, cl, false, {});
then env_2;
case (p,p_class) then {};
end matchcontinue;
end getClassEnv;

protected function getClassEnvNoElaboration "function: getClassEnvNoElaboration
Expand Down

0 comments on commit 72a449e

Please sign in to comment.