Ticket #2044: ReplaceableError.mo

File ReplaceableError.mo, 771 bytes (added by julian.wyszynski, 12 years ago)

File showing error

Line 
1within ;
2package ReplaceableError
3 model model1
4 package myModelPackage = package1;
5 model2 component1(redeclare package modelPackage=myModelPackage);
6 equation
7
8 end model1;
9
10 model model2
11 replaceable package modelPackage = package1 extends basePackage;
12 extends modelPackage.Base;
13 extends modelPackage.Base2;
14 Real b;
15 equation
16 b = a;
17 end model2;
18
19 package package1
20 extends ReplaceableError.basePackage;
21 end package1;
22
23 package basePackage
24 model Base
25 Real a(start=1);
26 equation
27 der(a)=1;
28 end Base;
29
30 replaceable partial model Base2
31 end Base2;
32
33 end basePackage;
34 annotation (uses(Modelica(version="2.2.2")));
35end ReplaceableError;