1 public class CGTestParam {
4 public CGTestParam() { a = 0; b = 0; }
5 public void CGTestFoo() {}
6 public void CGTestBar() {}
9 public class CGTestParamChild1 extends CGTestParam {
11 public CGTestParamChild1() {}
12 public void CGTestBar() {}
15 public class CGTestParamChild2 extends CGTestParam {
17 public CGTestParamChild2() {}
18 public void CGTestFoo() {}
19 public void CGTestBar() {}
22 task Startup( StartupObject s{ initialstate } ) {
23 CGTestParam p = new CGTestParam(){!w};
24 taskexit( s{ !initialstate } );
27 task CGTestTask1( CGTestParam p{!w} ) {
29 CGTestParamChild1 p1 = new CGTestParamChild1(){!x};
30 CGTestParamChild2 p2 = new CGTestParamChild2(){!y};
34 task CGTestTask2( CGTestParamChild1 p{!x} ) {
40 task CGTestTask3( CGTestParamChild2 p{!y} ) {