Skip to content

Commit

Permalink
- do not split out the modifiers from redeclares in case of functions…
Browse files Browse the repository at this point in the history
… and records.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@14500 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Dec 21, 2012
1 parent dab021a commit e171af4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Compiler/FrontEnd/SCodeUtil.mo
Expand Up @@ -2024,6 +2024,11 @@ algorithm
case SCode.CLASS(name, prefs, ep, pp, res, SCode.DERIVED(ty, mod, attr, cmt), info)
equation
true = Flags.isSet(Flags.SCODE_INST_SHORTCUT);
// do not split for functions and records!
true = boolNot(
boolOr(
SCode.isFunctionOrExtFunctionRestriction(res),
SCode.isRecord(inElement)));
(redecl, opt_mod) = splitRedeclareMod(mod, name);
then
(SCode.CLASS(name, prefs, ep, pp, res,
Expand Down

0 comments on commit e171af4

Please sign in to comment.