Opened 19 years ago

Last modified 14 years ago

#77 closed defect (worksforme)

Built-in type attributes given as modifiers in type declarations not propagated

Reported by: jakesson Owned by: jakesson
Priority: critical Milestone:
Component: Version:
Keywords: Cc: jakesson, Adrian Pop

Description

See comments.

Change History (2)

comment:1 by jakesson, 19 years ago

Consider the class:

model C1

Real x (unit="m", start=1);
type Y = Real (unit="n",start=2);
Y y;

end C1;

and the corresponding instantiated flat class generated by instantiateModel(.)

fclass C1
Real x(unit = "m", start = 1.0);
Real y;
end C1;

The modifiers of the type declaration corresponding to Y are not propagated to
the component y of type Y. This is major to me since I generate code where e.g.
the min, max, and nominal attributes are important.

comment:2 by Martin Sjölund, 14 years ago

This is working in the trunk :)

Note: See TracTickets for help on using tickets.