1 | within ;
|
---|
2 | package 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 | equation
|
---|
14 |
|
---|
15 | end model2;
|
---|
16 |
|
---|
17 | package package1
|
---|
18 | extends ReplaceableError.basePackage;
|
---|
19 | end package1;
|
---|
20 |
|
---|
21 | package basePackage
|
---|
22 | model Base
|
---|
23 | Real a(start=1);
|
---|
24 | equation
|
---|
25 | der(a)=1;
|
---|
26 | end Base;
|
---|
27 | end basePackage;
|
---|
28 | annotation (uses(Modelica(version="2.2.2")));
|
---|
29 | end ReplaceableError;
|
---|