Skip to content

Commit

Permalink
- Fixed type mismatch errors for checkModel in Modelica.Media.
Browse files Browse the repository at this point in the history
- Updated Modelica.Media test case.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9358 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Jun 23, 2011
1 parent 32cffc2 commit cc0c1f4
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions Compiler/FrontEnd/Types.mo
Expand Up @@ -1527,22 +1527,6 @@ algorithm
then
true;

// adrpo, Type should be ok to match a Type[0] when checkModel is ON
case (t1, (DAE.T_ARRAY(arrayDim = DAE.DIM_INTEGER(0), arrayType = t2), _))
equation
true = OptManager.getOption("checkModel");
true = subtype(t1, t2);
then
true;

// adrpo, Type[0] should be ok to match a Type when checkModel is ON
case ((DAE.T_ARRAY(arrayDim = DAE.DIM_INTEGER(0), arrayType = t1), _), t2)
equation
true = OptManager.getOption("checkModel");
true = subtype(t1, t2);
then
true;

// Array
case ((DAE.T_ARRAY(arrayDim = dim1,arrayType = t1),_),(DAE.T_ARRAY(arrayDim = dim2,arrayType = t2),_))
equation
Expand Down

0 comments on commit cc0c1f4

Please sign in to comment.