Opened 16 years ago
Last modified 9 years ago
#1061 assigned defect
Check of redeclaration of different type is not made (from MathCore)
Reported by: | krsta | Owned by: | krsta |
---|---|---|---|
Priority: | high | Milestone: | Future |
Component: | Version: | ||
Keywords: | Cc: | krsta |
Description
In C2 a change to the type Integer is made, which is illegal (must be a subtype of Real). However, C2 builds and returns the value r=3.
class C1 protected replaceable parameter Real r=3.14; end C1; model C2 replaceable parameter C1 x1(redeclare replaceable Integer r=3 ); end C2;
Change History (2)
comment:1 by , 15 years ago
comment:2 by , 9 years ago
Cc: | krsta, → krsta |
---|---|
Milestone: | → Future |
Note:
See TracTickets
for help on using tickets.
http://intranet/trac/mathmodelica/ticket/1100