1
1
=== tests/cases/compiler/parameterPropertyInConstructorWithPrologues.ts ===
2
2
// https://github.com/microsoft/TypeScript/issues/48671
3
3
4
+ class C {}
5
+ >C : Symbol(C, Decl(parameterPropertyInConstructorWithPrologues.ts, 0, 0))
6
+
4
7
class Foo1 {
5
- >Foo1 : Symbol(Foo1, Decl(parameterPropertyInConstructorWithPrologues.ts, 0, 0 ))
8
+ >Foo1 : Symbol(Foo1, Decl(parameterPropertyInConstructorWithPrologues.ts, 2, 10 ))
6
9
7
10
constructor(private A: string) {
8
- >A : Symbol(Foo1.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 3 , 14))
11
+ >A : Symbol(Foo1.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 5 , 14))
9
12
10
13
"ngInject1";
11
14
}
12
15
}
13
16
14
17
class Foo2 {
15
- >Foo2 : Symbol(Foo2, Decl(parameterPropertyInConstructorWithPrologues.ts, 6 , 1))
18
+ >Foo2 : Symbol(Foo2, Decl(parameterPropertyInConstructorWithPrologues.ts, 8 , 1))
16
19
17
20
constructor(private A: string, private B: string) {
18
- >A : Symbol(Foo2.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 9 , 14))
19
- >B : Symbol(Foo2.B, Decl(parameterPropertyInConstructorWithPrologues.ts, 9 , 32))
21
+ >A : Symbol(Foo2.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 11 , 14))
22
+ >B : Symbol(Foo2.B, Decl(parameterPropertyInConstructorWithPrologues.ts, 11 , 32))
20
23
21
24
"ngInject1";
22
25
"ngInject2";
23
26
}
24
27
}
25
28
26
29
class Foo3 {
27
- >Foo3 : Symbol(Foo3, Decl(parameterPropertyInConstructorWithPrologues.ts, 13 , 1))
30
+ >Foo3 : Symbol(Foo3, Decl(parameterPropertyInConstructorWithPrologues.ts, 15 , 1))
28
31
29
32
constructor(private A: string, private B: string, private C: string) {
30
- >A : Symbol(Foo3.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 16 , 14))
31
- >B : Symbol(Foo3.B, Decl(parameterPropertyInConstructorWithPrologues.ts, 16 , 32))
32
- >C : Symbol(Foo3.C, Decl(parameterPropertyInConstructorWithPrologues.ts, 16 , 51))
33
+ >A : Symbol(Foo3.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 18 , 14))
34
+ >B : Symbol(Foo3.B, Decl(parameterPropertyInConstructorWithPrologues.ts, 18 , 32))
35
+ >C : Symbol(Foo3.C, Decl(parameterPropertyInConstructorWithPrologues.ts, 18 , 51))
33
36
34
37
"ngInject1";
35
38
"ngInject2";
36
39
}
37
40
}
38
41
39
42
class Foo4 {
40
- >Foo4 : Symbol(Foo4, Decl(parameterPropertyInConstructorWithPrologues.ts, 20 , 1))
43
+ >Foo4 : Symbol(Foo4, Decl(parameterPropertyInConstructorWithPrologues.ts, 22 , 1))
41
44
42
45
constructor(private A: string) {
43
- >A : Symbol(Foo4.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 23 , 14))
46
+ >A : Symbol(Foo4.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 25 , 14))
44
47
45
48
"ngInject1";
46
49
console.log("hi");
@@ -51,11 +54,11 @@ class Foo4 {
51
54
}
52
55
53
56
class Foo5 {
54
- >Foo5 : Symbol(Foo5, Decl(parameterPropertyInConstructorWithPrologues.ts, 27 , 1))
57
+ >Foo5 : Symbol(Foo5, Decl(parameterPropertyInConstructorWithPrologues.ts, 29 , 1))
55
58
56
59
constructor(private A: string, private B: string) {
57
- >A : Symbol(Foo5.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 30 , 14))
58
- >B : Symbol(Foo5.B, Decl(parameterPropertyInConstructorWithPrologues.ts, 30 , 32))
60
+ >A : Symbol(Foo5.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 32 , 14))
61
+ >B : Symbol(Foo5.B, Decl(parameterPropertyInConstructorWithPrologues.ts, 32 , 32))
59
62
60
63
"ngInject1";
61
64
"ngInject2";
@@ -67,19 +70,92 @@ class Foo5 {
67
70
}
68
71
69
72
class Foo6 {
70
- >Foo6 : Symbol(Foo6, Decl(parameterPropertyInConstructorWithPrologues.ts, 35 , 1))
73
+ >Foo6 : Symbol(Foo6, Decl(parameterPropertyInConstructorWithPrologues.ts, 37 , 1))
71
74
72
75
constructor(private A: string, private B: string, private C: string) {
73
- >A : Symbol(Foo6.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 38, 14))
74
- >B : Symbol(Foo6.B, Decl(parameterPropertyInConstructorWithPrologues.ts, 38, 32))
75
- >C : Symbol(Foo6.C, Decl(parameterPropertyInConstructorWithPrologues.ts, 38, 51))
76
+ >A : Symbol(Foo6.A, Decl(parameterPropertyInConstructorWithPrologues.ts, 40, 14))
77
+ >B : Symbol(Foo6.B, Decl(parameterPropertyInConstructorWithPrologues.ts, 40, 32))
78
+ >C : Symbol(Foo6.C, Decl(parameterPropertyInConstructorWithPrologues.ts, 40, 51))
79
+
80
+ "ngInject1";
81
+ "ngInject2";
82
+ console.log("hi");
83
+ >console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
84
+ >console : Symbol(console, Decl(lib.dom.d.ts, --, --))
85
+ >log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
86
+ }
87
+ }
88
+
89
+ class Foo7 extends C {
90
+ >Foo7 : Symbol(Foo7, Decl(parameterPropertyInConstructorWithPrologues.ts, 45, 1))
91
+ >C : Symbol(C, Decl(parameterPropertyInConstructorWithPrologues.ts, 0, 0))
92
+
93
+ constructor(
94
+ private member: boolean,
95
+ >member : Symbol(Foo7.member, Decl(parameterPropertyInConstructorWithPrologues.ts, 48, 14))
96
+
97
+ ) {
98
+ "ngInject1";
99
+ super();
100
+ >super : Symbol(C, Decl(parameterPropertyInConstructorWithPrologues.ts, 0, 0))
101
+
102
+ console.log("hi");
103
+ >console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
104
+ >console : Symbol(console, Decl(lib.dom.d.ts, --, --))
105
+ >log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
106
+ }
107
+ }
108
+
109
+ class Foo8 extends C {
110
+ >Foo8 : Symbol(Foo8, Decl(parameterPropertyInConstructorWithPrologues.ts, 55, 1))
111
+ >C : Symbol(C, Decl(parameterPropertyInConstructorWithPrologues.ts, 0, 0))
76
112
113
+ constructor(
114
+ private member: boolean,
115
+ >member : Symbol(Foo8.member, Decl(parameterPropertyInConstructorWithPrologues.ts, 58, 14))
116
+
117
+ ) {
118
+ "ngInject1";
119
+ super();
120
+ >super : Symbol(C, Decl(parameterPropertyInConstructorWithPrologues.ts, 0, 0))
121
+
122
+ this.m();
123
+ >this.m : Symbol(Foo8.m, Decl(parameterPropertyInConstructorWithPrologues.ts, 65, 3))
124
+ >this : Symbol(Foo8, Decl(parameterPropertyInConstructorWithPrologues.ts, 55, 1))
125
+ >m : Symbol(Foo8.m, Decl(parameterPropertyInConstructorWithPrologues.ts, 65, 3))
126
+
127
+ console.log("hi");
128
+ >console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
129
+ >console : Symbol(console, Decl(lib.dom.d.ts, --, --))
130
+ >log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
131
+ }
132
+
133
+ m() {}
134
+ >m : Symbol(Foo8.m, Decl(parameterPropertyInConstructorWithPrologues.ts, 65, 3))
135
+ }
136
+
137
+ class Foo9 extends C {
138
+ >Foo9 : Symbol(Foo9, Decl(parameterPropertyInConstructorWithPrologues.ts, 68, 1))
139
+ >C : Symbol(C, Decl(parameterPropertyInConstructorWithPrologues.ts, 0, 0))
140
+
141
+ constructor() {
77
142
"ngInject1";
78
143
"ngInject2";
144
+ super();
145
+ >super : Symbol(C, Decl(parameterPropertyInConstructorWithPrologues.ts, 0, 0))
146
+
147
+ this.m();
148
+ >this.m : Symbol(Foo9.m, Decl(parameterPropertyInConstructorWithPrologues.ts, 77, 3))
149
+ >this : Symbol(Foo9, Decl(parameterPropertyInConstructorWithPrologues.ts, 68, 1))
150
+ >m : Symbol(Foo9.m, Decl(parameterPropertyInConstructorWithPrologues.ts, 77, 3))
151
+
79
152
console.log("hi");
80
153
>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
81
154
>console : Symbol(console, Decl(lib.dom.d.ts, --, --))
82
155
>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --))
83
156
}
157
+
158
+ m() {}
159
+ >m : Symbol(Foo9.m, Decl(parameterPropertyInConstructorWithPrologues.ts, 77, 3))
84
160
}
85
161
0 commit comments