Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: ce4457d6577875501594260b431a0ce037797cba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/**
 * Test expressions involving templates.
 **/
active class Expressions_Template {

	public receive signal Continue {
	}

	public activity A<T specializes B>(in x: T): Integer;
	public class B {

		public i: Integer;
		@Create
		public B(in i: Integer);
		@Destroy
		public destroy();

	}

	public class C<T> {

		activity E(in x: T): T;
		p: T;
		@Create
		public C(in p: T);
		r(): T;
		@Destroy
		public destroy();

	}

	public active class H<T> {

		public a: T;
		public b: T;
		public t: TestRunner;
		@Create
		public H(in a: T, in t: TestRunner);
		@Destroy
		public destroy();

	} do 'H$behavior$1'

	public active class TestRunner {

		public receive signal Start {
		}

		public receive signal Continue {
		}

		public test(out i: Integer, out j: Integer, out h: H< B >,
			out s: Set< Integer >, out list: List< Integer >);
		@Create
		public TestRunner();
		@Destroy
		public destroy();

	} do 'TestRunner$behavior$1'

	@Create
	public Expressions_Template();
	@Destroy
	public destroy();

} do 'Expressions_Template$behavior$1'

Back to the top