Changeset c8bb2af in OpenModelica


Ignore:
Timestamp:
2010-11-24T08:50:34+01:00 (14 years ago)
Author:
Adrian Pop <adrian.pop@…>
Branches:
Added-citation-metadata, maintenance/v1.14, maintenance/v1.15, maintenance/v1.16, maintenance/v1.17, maintenance/v1.18, maintenance/v1.19, maintenance/v1.20, maintenance/v1.21, maintenance/v1.22, maintenance/v1.23, master, omlib-staging
Children:
d39eb19
Parents:
41286c7
Message:

Fixes for bug: #1315

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@7162 f25d12d1-65f4-0310-ae8a-bbce733d8d8e

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Compiler/Types.mo

    ra034170 rc8bb2af  
    15301530        true;
    15311531   
     1532    // adrpo, Type should be ok to match a Type[0] when checkModel is ON
     1533    case (t1, (DAE.T_ARRAY(arrayDim = DAE.DIM_INTEGER(0), arrayType = t2), _))
     1534      equation
     1535        true = OptManager.getOption("checkModel");
     1536        true = subtype(t1, t2);
     1537      then
     1538        true;
     1539   
     1540    // adrpo, Type[0] should be ok to match a Type when checkModel is ON
     1541    case ((DAE.T_ARRAY(arrayDim = DAE.DIM_INTEGER(0), arrayType = t1), _), t2)
     1542      equation
     1543        true = OptManager.getOption("checkModel");
     1544        true = subtype(t1, t2);
     1545      then
     1546        true;   
     1547   
    15321548    // Array
    15331549    case ((DAE.T_ARRAY(arrayDim = dim1,arrayType = t1),_),(DAE.T_ARRAY(arrayDim = dim2,arrayType = t2),_))
Note: See TracChangeset for help on using the changeset viewer.