Changes between Initial Version and Version 1 of Ticket #6180


Ignore:
Timestamp:
2020-11-05T12:25:44Z (4 years ago)
Author:
Per Östlund
Comment:

I'm afraid I can't replicate the issue, the model compiles and simulates without any errors for me. Can you be more specific on what goes wrong?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6180 – Description

    initial v1  
    11''Sample code follows below.  This code compiles in previous releases of OMC.''
    2 
     2{{{#!mo
    33model DebugI
    44  record InnerA
    5    Integer c = 2;
     5    Integer c = 2;
    66  end InnerA;
    77
    8  record InnerB
    9   Integer c;
    10  end InnerB;
     8  record InnerB
     9    Integer c;
     10  end InnerB;
    1111
    12  record BaseRecord
    13   InnerA inner_a;
    14   Integer d = inner_a.c;          '''...this works'''
    15   InnerB inner_b (c = inner_a.c); '''...this fails to compile'''
    16  end BaseRecord
     12  record BaseRecord
     13    InnerA inner_a;
     14    Integer d = inner_a.c;          //...this works
     15    InnerB inner_b (c = inner_a.c); //...this fails to compile
     16  end BaseRecord;
    1717
    18  BaseRecord base;
    19 
     18  BaseRecord base;
    2019end DebugI;
     20}}}