Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…by adding a

  case for arrays in Types.getFixedVarAttribute.
- Added testcase mofiles/FixedFinalParameter.mo to test the fix.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5320 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Apr 16, 2010
1 parent 9b34ee9 commit 2d98f62
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Compiler/Types.mo
Expand Up @@ -2854,6 +2854,15 @@ algorithm
case((DAE.T_BOOL(_::vars),_)) equation
fixed = getFixedVarAttribute((DAE.T_BOOL(vars),NONE));
then fixed;

case((DAE.T_ARRAY(arrayType = ty), _))
local
Type ty;
Boolean result;
equation
result = getFixedVarAttribute(ty);
then
result;
end matchcontinue;
end getFixedVarAttribute;

Expand Down

0 comments on commit 2d98f62

Please sign in to comment.