Skip to content

Commit

Permalink
- Fixed dependency analysis for classes redeclared multiple times.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@22435 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Sep 25, 2014
1 parent ccbfa81 commit 6c7ffee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Compiler/FrontEnd/NFSCodeLookup.mo
Expand Up @@ -1235,6 +1235,13 @@ algorithm
then
(item, env);

case (NFSCodeEnv.REDECLARED_ITEM(item, env), _, _, _, _)
equation
(item, env) = lookupRedeclaredClass2(item, inRedeclarePrefix,
inReplaceablePrefix, env, inInfo);
then
(item, env);

// Non-replaceable element => error.
case (NFSCodeEnv.CLASS(cls = SCode.CLASS(name = name, info = info)),
_, SCode.NOT_REPLACEABLE(), _, _)
Expand Down

0 comments on commit 6c7ffee

Please sign in to comment.