Skip to content

Commit

Permalink
Don't allow max(scalar)
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@15532 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Mar 11, 2013
1 parent 3b365f0 commit 6220241
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Compiler/FrontEnd/Static.mo
Original file line number Diff line number Diff line change
Expand Up @@ -4557,6 +4557,7 @@ algorithm
equation
(cache, arrexp_1, DAE.PROP(ty, c), _) =
elabExp(cache, env, arrexp, impl,NONE(), true, pre, info);
true = Types.isArray(ty,{});
elt_ty = Types.arrayElementType(ty);
tp = Types.simplifyType(elt_ty);
false = Types.isString(tp);
Expand All @@ -4575,6 +4576,7 @@ algorithm

// Use the first of the returned values from the function.
DAE.PROP(ty, c) :: _ = Types.propTuplePropList(p);
true = Types.isArray(ty,{});
tp = Types.simplifyType(ty);
arrexp_1 = DAE.TSUB(arrexp_1, 1, tp);
elt_ty = Types.arrayElementType(ty);
Expand Down

0 comments on commit 6220241

Please sign in to comment.