Opened 16 years ago
Last modified 15 years ago
#1087 closed defect (fixed)
Problem with record constructors
Reported by: | krsta | Owned by: | krsta |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | krsta, |
Description
record Person String name; Integer age; end Person; model CreatePerson Integer hisage; Person john = Person("John", 35); equation hisage = john.age; end CreatePerson; -lower2 failed -lower2 failed -lower2 failed -lower2 failed -lower2 failed -lower2 failed "1.4.4"0 true "fclass CreatePerson Integer hisage; String john.name; Integer john.age; equation __TMP__0 = Person("John",35); john.name = __TMP__0.name; john.age = __TMP__0.age; hisage = john.age; end CreatePerson; " record resultFile = "Simulation failed. " end record
Note:
See TracTickets
for help on using tickets.
This bug has been fixed some time ago I believe. The model flattens and simulates correctly now anyway.