Skip to content

Commit

Permalink
- Fixing the testsuite again.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12069 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Jun 15, 2012
1 parent 8bc1089 commit 975079a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Compiler/FrontEnd/Static.mo
Expand Up @@ -3298,7 +3298,8 @@ algorithm
false = Types.isUnknownType(inArrayExpType);
exp_str = ExpressionDump.printExpStr(inArrayExp);
size_str = "size(" +& exp_str +& ")";
Error.addSourceMessage(Error.INVALID_ARGUMENT_TYPE, {"1", size_str, "array expression"}, inInfo);
Error.addSourceMessage(Error.INVALID_ARGUMENT_TYPE,
{"first ", size_str, "an array expression"}, inInfo);
then
fail();

Expand Down Expand Up @@ -3361,7 +3362,7 @@ algorithm
index_str = ExpressionDump.printExpStr(inIndexExp);
size_str = "size(" +& exp_str +& ", " +& index_str +& ")";
Error.addSourceMessage(Error.INVALID_ARGUMENT_TYPE,
{"1", size_str, "array expression"}, inInfo);
{"first ", size_str, "an array expression"}, inInfo);
then
(NONE(), NONE());

Expand Down

0 comments on commit 975079a

Please sign in to comment.