Ticket #1987: Bug.mo

File Bug.mo, 404 bytes (added by Christian Schubert, 12 years ago)
Line 
1within ;
2package Bug
3 partial block Interface
4 input Real x;
5 output Real y;
6 end Interface;
7
8 block Impl
9 extends Interface;
10 equation
11 y = 2*x;
12 end Impl;
13
14 model A
15 outer block R = Interface;
16 R r(x = 1);
17 Real y = r.y;
18 end A;
19
20 model B
21 inner block R = Impl;
22 A a;
23 Real xa(start = 1);
24 equation
25 der(xa) = a.y;
26 end B;
27end Bug;