1
1
useBeforeDeclaration_classDecorators.2.ts(7,6): error TS2449: Class 'C2' used before its declaration.
2
2
useBeforeDeclaration_classDecorators.2.ts(10,13): error TS2449: Class 'C3' used before its declaration.
3
- useBeforeDeclaration_classDecorators.2.ts(16,5): error TS1207: Decorators cannot be applied to multiple get/set accessors of the same name.
4
- useBeforeDeclaration_classDecorators.2.ts(22,5): error TS1207: Decorators cannot be applied to multiple get/set accessors of the same name.
3
+ useBeforeDeclaration_classDecorators.2.ts(26,17): error TS1206: Decorators are not valid here.
4
+ useBeforeDeclaration_classDecorators.2.ts(27,20): error TS1206: Decorators are not valid here.
5
+ useBeforeDeclaration_classDecorators.2.ts(28,13): error TS1206: Decorators are not valid here.
5
6
useBeforeDeclaration_classDecorators.2.ts(33,10): error TS2449: Class 'C5' used before its declaration.
6
7
useBeforeDeclaration_classDecorators.2.ts(34,10): error TS2449: Class 'C5' used before its declaration.
7
- useBeforeDeclaration_classDecorators.2.ts(35,5): error TS1207: Decorators cannot be applied to multiple get/set accessors of the same name.
8
8
useBeforeDeclaration_classDecorators.2.ts(35,10): error TS2449: Class 'C5' used before its declaration.
9
9
useBeforeDeclaration_classDecorators.2.ts(36,10): error TS2449: Class 'C5' used before its declaration.
10
10
useBeforeDeclaration_classDecorators.2.ts(37,10): error TS2449: Class 'C5' used before its declaration.
11
11
useBeforeDeclaration_classDecorators.2.ts(39,10): error TS2449: Class 'C5' used before its declaration.
12
12
useBeforeDeclaration_classDecorators.2.ts(40,10): error TS2449: Class 'C5' used before its declaration.
13
- useBeforeDeclaration_classDecorators.2.ts(41,5): error TS1207: Decorators cannot be applied to multiple get/set accessors of the same name.
14
13
useBeforeDeclaration_classDecorators.2.ts(41,10): error TS2449: Class 'C5' used before its declaration.
15
14
useBeforeDeclaration_classDecorators.2.ts(42,10): error TS2449: Class 'C5' used before its declaration.
16
15
useBeforeDeclaration_classDecorators.2.ts(43,10): error TS2449: Class 'C5' used before its declaration.
17
- useBeforeDeclaration_classDecorators.2.ts(46,22 ): error TS2449: Class 'C5' used before its declaration .
18
- useBeforeDeclaration_classDecorators.2.ts(47,25 ): error TS2449: Class 'C5' used before its declaration .
19
- useBeforeDeclaration_classDecorators.2.ts(48,18 ): error TS2449: Class 'C5' used before its declaration .
16
+ useBeforeDeclaration_classDecorators.2.ts(46,17 ): error TS1206: Decorators are not valid here .
17
+ useBeforeDeclaration_classDecorators.2.ts(47,20 ): error TS1206: Decorators are not valid here .
18
+ useBeforeDeclaration_classDecorators.2.ts(48,13 ): error TS1206: Decorators are not valid here .
20
19
useBeforeDeclaration_classDecorators.2.ts(53,17): error TS2449: Class 'C6' used before its declaration.
21
20
useBeforeDeclaration_classDecorators.2.ts(54,17): error TS2449: Class 'C6' used before its declaration.
22
- useBeforeDeclaration_classDecorators.2.ts(55,5): error TS1207: Decorators cannot be applied to multiple get/set accessors of the same name.
23
21
useBeforeDeclaration_classDecorators.2.ts(55,17): error TS2449: Class 'C6' used before its declaration.
24
22
useBeforeDeclaration_classDecorators.2.ts(56,17): error TS2449: Class 'C6' used before its declaration.
25
23
useBeforeDeclaration_classDecorators.2.ts(57,17): error TS2449: Class 'C6' used before its declaration.
26
24
useBeforeDeclaration_classDecorators.2.ts(59,17): error TS2449: Class 'C6' used before its declaration.
27
25
useBeforeDeclaration_classDecorators.2.ts(60,17): error TS2449: Class 'C6' used before its declaration.
28
- useBeforeDeclaration_classDecorators.2.ts(61,5): error TS1207: Decorators cannot be applied to multiple get/set accessors of the same name.
29
26
useBeforeDeclaration_classDecorators.2.ts(61,17): error TS2449: Class 'C6' used before its declaration.
30
27
useBeforeDeclaration_classDecorators.2.ts(62,17): error TS2449: Class 'C6' used before its declaration.
31
28
useBeforeDeclaration_classDecorators.2.ts(63,17): error TS2449: Class 'C6' used before its declaration.
32
- useBeforeDeclaration_classDecorators.2.ts(66,29 ): error TS2449: Class 'C6' used before its declaration .
33
- useBeforeDeclaration_classDecorators.2.ts(67,32 ): error TS2449: Class 'C6' used before its declaration .
34
- useBeforeDeclaration_classDecorators.2.ts(68,25 ): error TS2449: Class 'C6' used before its declaration .
29
+ useBeforeDeclaration_classDecorators.2.ts(66,17 ): error TS1206: Decorators are not valid here .
30
+ useBeforeDeclaration_classDecorators.2.ts(67,20 ): error TS1206: Decorators are not valid here .
31
+ useBeforeDeclaration_classDecorators.2.ts(68,13 ): error TS1206: Decorators are not valid here .
35
32
36
33
37
- ==== useBeforeDeclaration_classDecorators.2.ts (34 errors) ====
34
+ ==== useBeforeDeclaration_classDecorators.2.ts (31 errors) ====
38
35
declare const dec: any;
39
36
40
37
// ok
@@ -55,24 +52,26 @@ useBeforeDeclaration_classDecorators.2.ts(68,25): error TS2449: Class 'C6' used
55
52
// ok
56
53
class C4 {
57
54
@dec(() => C4) static method() {}
58
- @dec(() => C4) static get x() { return this.y; }
59
- @dec(() => C4) static set x(v) {}
60
- ~
61
- !!! error TS1207: Decorators cannot be applied to multiple get/set accessors of the same name.
55
+ @dec(() => C4) static get w() { return this.y; }
56
+ @dec(() => C4) static set x(v: any) {}
62
57
@dec(() => C4) static y: any;
63
58
@dec(() => C4) static accessor z: any;
64
59
65
60
@dec(() => C4) method() {}
66
- @dec(() => C4) get x() { return this.y; }
67
- @dec(() => C4) set x(v) {}
68
- ~
69
- !!! error TS1207: Decorators cannot be applied to multiple get/set accessors of the same name.
61
+ @dec(() => C4) get w() { return this.y; }
62
+ @dec(() => C4) set x(v: any) {}
70
63
@dec(() => C4) y: any;
71
64
@dec(() => C4) accessor z: any;
72
65
73
66
constructor(@dec(() => C4) a: any) {}
67
+ ~
68
+ !!! error TS1206: Decorators are not valid here.
74
69
static method2(@dec(() => C4) a: any) {}
70
+ ~
71
+ !!! error TS1206: Decorators are not valid here.
75
72
method2(@dec(() => C4) a: any) {}
73
+ ~
74
+ !!! error TS1206: Decorators are not valid here.
76
75
}
77
76
78
77
// error
@@ -81,13 +80,11 @@ useBeforeDeclaration_classDecorators.2.ts(68,25): error TS2449: Class 'C6' used
81
80
~~
82
81
!!! error TS2449: Class 'C5' used before its declaration.
83
82
!!! related TS2728 useBeforeDeclaration_classDecorators.2.ts:32:7: 'C5' is declared here.
84
- @dec(C5) static get x () { return this.y; }
83
+ @dec(C5) static get w () { return this.y; }
85
84
~~
86
85
!!! error TS2449: Class 'C5' used before its declaration.
87
86
!!! related TS2728 useBeforeDeclaration_classDecorators.2.ts:32:7: 'C5' is declared here.
88
- @dec(C5) static set x(v) {}
89
- ~
90
- !!! error TS1207: Decorators cannot be applied to multiple get/set accessors of the same name.
87
+ @dec(C5) static set x(v: any) {}
91
88
~~
92
89
!!! error TS2449: Class 'C5' used before its declaration.
93
90
!!! related TS2728 useBeforeDeclaration_classDecorators.2.ts:32:7: 'C5' is declared here.
@@ -104,13 +101,11 @@ useBeforeDeclaration_classDecorators.2.ts(68,25): error TS2449: Class 'C6' used
104
101
~~
105
102
!!! error TS2449: Class 'C5' used before its declaration.
106
103
!!! related TS2728 useBeforeDeclaration_classDecorators.2.ts:32:7: 'C5' is declared here.
107
- @dec(C5) get x () { return this.y; }
104
+ @dec(C5) get w () { return this.y; }
108
105
~~
109
106
!!! error TS2449: Class 'C5' used before its declaration.
110
107
!!! related TS2728 useBeforeDeclaration_classDecorators.2.ts:32:7: 'C5' is declared here.
111
- @dec(C5) set x(v) {}
112
- ~
113
- !!! error TS1207: Decorators cannot be applied to multiple get/set accessors of the same name.
108
+ @dec(C5) set x(v: any) {}
114
109
~~
115
110
!!! error TS2449: Class 'C5' used before its declaration.
116
111
!!! related TS2728 useBeforeDeclaration_classDecorators.2.ts:32:7: 'C5' is declared here.
@@ -125,17 +120,14 @@ useBeforeDeclaration_classDecorators.2.ts(68,25): error TS2449: Class 'C6' used
125
120
126
121
127
122
constructor(@dec(C5) a: any) {}
128
- ~~
129
- !!! error TS2449: Class 'C5' used before its declaration.
130
- !!! related TS2728 useBeforeDeclaration_classDecorators.2.ts:32:7: 'C5' is declared here.
123
+ ~
124
+ !!! error TS1206: Decorators are not valid here.
131
125
static method2(@dec(C5) a: any) {}
132
- ~~
133
- !!! error TS2449: Class 'C5' used before its declaration.
134
- !!! related TS2728 useBeforeDeclaration_classDecorators.2.ts:32:7: 'C5' is declared here.
126
+ ~
127
+ !!! error TS1206: Decorators are not valid here.
135
128
method2(@dec(C5) a: any) {}
136
- ~~
137
- !!! error TS2449: Class 'C5' used before its declaration.
138
- !!! related TS2728 useBeforeDeclaration_classDecorators.2.ts:32:7: 'C5' is declared here.
129
+ ~
130
+ !!! error TS1206: Decorators are not valid here.
139
131
}
140
132
141
133
// error
@@ -144,13 +136,11 @@ useBeforeDeclaration_classDecorators.2.ts(68,25): error TS2449: Class 'C6' used
144
136
~~
145
137
!!! error TS2449: Class 'C6' used before its declaration.
146
138
!!! related TS2728 useBeforeDeclaration_classDecorators.2.ts:52:7: 'C6' is declared here.
147
- @dec((() => C6)()) static get x () { return this.y; }
139
+ @dec((() => C6)()) static get w () { return this.y; }
148
140
~~
149
141
!!! error TS2449: Class 'C6' used before its declaration.
150
142
!!! related TS2728 useBeforeDeclaration_classDecorators.2.ts:52:7: 'C6' is declared here.
151
- @dec((() => C6)()) static set x(v) {}
152
- ~
153
- !!! error TS1207: Decorators cannot be applied to multiple get/set accessors of the same name.
143
+ @dec((() => C6)()) static set x(v: any) {}
154
144
~~
155
145
!!! error TS2449: Class 'C6' used before its declaration.
156
146
!!! related TS2728 useBeforeDeclaration_classDecorators.2.ts:52:7: 'C6' is declared here.
@@ -167,13 +157,11 @@ useBeforeDeclaration_classDecorators.2.ts(68,25): error TS2449: Class 'C6' used
167
157
~~
168
158
!!! error TS2449: Class 'C6' used before its declaration.
169
159
!!! related TS2728 useBeforeDeclaration_classDecorators.2.ts:52:7: 'C6' is declared here.
170
- @dec((() => C6)()) get x () { return this.y; }
160
+ @dec((() => C6)()) get w () { return this.y; }
171
161
~~
172
162
!!! error TS2449: Class 'C6' used before its declaration.
173
163
!!! related TS2728 useBeforeDeclaration_classDecorators.2.ts:52:7: 'C6' is declared here.
174
- @dec((() => C6)()) set x(v) {}
175
- ~
176
- !!! error TS1207: Decorators cannot be applied to multiple get/set accessors of the same name.
164
+ @dec((() => C6)()) set x(v: any) {}
177
165
~~
178
166
!!! error TS2449: Class 'C6' used before its declaration.
179
167
!!! related TS2728 useBeforeDeclaration_classDecorators.2.ts:52:7: 'C6' is declared here.
@@ -188,16 +176,13 @@ useBeforeDeclaration_classDecorators.2.ts(68,25): error TS2449: Class 'C6' used
188
176
189
177
190
178
constructor(@dec((() => C6)()) a: any) {}
191
- ~~
192
- !!! error TS2449: Class 'C6' used before its declaration.
193
- !!! related TS2728 useBeforeDeclaration_classDecorators.2.ts:52:7: 'C6' is declared here.
179
+ ~
180
+ !!! error TS1206: Decorators are not valid here.
194
181
static method2(@dec((() => C6)()) a: any) {}
195
- ~~
196
- !!! error TS2449: Class 'C6' used before its declaration.
197
- !!! related TS2728 useBeforeDeclaration_classDecorators.2.ts:52:7: 'C6' is declared here.
182
+ ~
183
+ !!! error TS1206: Decorators are not valid here.
198
184
method2(@dec((() => C6)()) a: any) {}
199
- ~~
200
- !!! error TS2449: Class 'C6' used before its declaration.
201
- !!! related TS2728 useBeforeDeclaration_classDecorators.2.ts:52:7: 'C6' is declared here.
185
+ ~
186
+ !!! error TS1206: Decorators are not valid here.
202
187
}
203
188
0 commit comments