Opened 4 years ago
Last modified 4 years ago
#6180 closed defect
Nested records which seek to assign values between each other now fail to compile — at Version 1
Reported by: | Owned by: | somebody | |
---|---|---|---|
Priority: | high | Milestone: | 1.16.0 |
Component: | Frontend | Version: | v1.16.0-dev |
Keywords: | Cc: |
Description (last modified by )
Sample code follows below. This code compiles in previous releases of OMC.
model DebugI record InnerA Integer c = 2; end InnerA; record InnerB Integer c; end InnerB; record BaseRecord InnerA inner_a; Integer d = inner_a.c; //...this works InnerB inner_b (c = inner_a.c); //...this fails to compile end BaseRecord; BaseRecord base; end DebugI;
Note:
See TracTickets
for help on using tickets.
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?