OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 // Dart test program for testing params. | 4 // Dart test program for testing params. |
5 | 5 |
6 // Convenience values. | 6 // Convenience values. |
7 var c = new C(); | 7 var c = new C(); |
8 var x = 42; | 8 var x = 42; |
9 var y = 42; | 9 var y = 42; |
10 var z = 42; | 10 var z = 42; |
11 | 11 |
12 // Trailing comma in parameter litss. | 12 // Trailing comma in parameter litss. |
13 | 13 |
14 // Typedefs. | 14 // Typedefs. |
15 typedef fx(x, ); /// none: ok | 15 typedef fx(x, ); //# none: ok |
16 typedef fy([y,]); /// none: continued | 16 typedef fy([y,]); //# none: continued |
17 typedef fxy(x, [y, ]); /// none: continued | 17 typedef fxy(x, [y, ]); //# none: continued |
18 typedef fz({z,}); /// none: continued | 18 typedef fz({z,}); //# none: continued |
19 typedef fxz(x, {z, }); /// none: continued | 19 typedef fxz(x, {z, }); //# none: continued |
20 | 20 |
21 // As arguments type. | 21 // As arguments type. |
22 argfx(void f(x, )) {} /// none: continued | 22 argfx(void f(x, )) {} //# none: continued |
23 argfy(void f([y, ])) {} /// none: continued | 23 argfy(void f([y, ])) {} //# none: continued |
24 argfxy(void f(x, [y, ])) {} /// none: continued | 24 argfxy(void f(x, [y, ])) {} //# none: continued |
25 argfz(void f({z, })) {} /// none: continued | 25 argfz(void f({z, })) {} //# none: continued |
26 argfxz(void f(x, {z, })) {} /// none: continued | 26 argfxz(void f(x, {z, })) {} //# none: continued |
27 | 27 |
28 // Top level functions | 28 // Top level functions |
29 void topx(x,) {} /// none: continued | 29 void topx(x,) {} //# none: continued |
30 void topy([y, ]) {} /// none: continued | 30 void topy([y, ]) {} //# none: continued |
31 void topxy(x, [y, ]) {} /// none: continued | 31 void topxy(x, [y, ]) {} //# none: continued |
32 void topz({z, }) {} /// none: continued | 32 void topz({z, }) {} //# none: continued |
33 void topxz(x, {z, }) {} /// none: continued | 33 void topxz(x, {z, }) {} //# none: continued |
34 | 34 |
35 void set topsetx(x, ) {} /// none: continued | 35 void set topsetx(x, ) {} //# none: continued |
36 | 36 |
37 // After specific parameter formats. | 37 // After specific parameter formats. |
38 void afterDefaultValueY([int y = 42, ]) {} /// none: continued | 38 void afterDefaultValueY([int y = 42, ]) {} //# none: continued |
39 void afterDefaultValueZ({int z : 42, }) {} /// none: continued | 39 void afterDefaultValueZ({int z : 42, }) {} //# none: continued |
40 void afterFunsigX(void f(),) {} /// none: continued | 40 void afterFunsigX(void f(),) {} //# none: continued |
41 void afterFunsigY([void f(),]) {} /// none: continued | 41 void afterFunsigY([void f(),]) {} //# none: continued |
42 void afterFunsigZ({void f(),}) {} /// none: continued | 42 void afterFunsigZ({void f(),}) {} //# none: continued |
43 void afterFunsigDefaultValueY([void f() = topy,]) {} /// none: continued | 43 void afterFunsigDefaultValueY([void f() = topy,]) {} //# none: continued |
44 void afterFunsigDefaultValueZ({void f() : topz,}) {} /// none: continued | 44 void afterFunsigDefaultValueZ({void f() : topz,}) {} //# none: continued |
45 | 45 |
46 class C { | 46 class C { |
47 C(); | 47 C(); |
48 | 48 |
49 // Constructors. | 49 // Constructors. |
50 C.x(x, ); /// none: continued | 50 C.x(x, ); //# none: continued |
51 C.y([y, ]); /// none: continued | 51 C.y([y, ]); //# none: continued |
52 C.xy(x, [y, ]); /// none: continued | 52 C.xy(x, [y, ]); //# none: continued |
53 C.z({z, }); /// none: continued | 53 C.z({z, }); //# none: continued |
54 C.xz(x, {z, }); /// none: continued | 54 C.xz(x, {z, }); //# none: continued |
55 | 55 |
56 // Static members | 56 // Static members |
57 static void staticx(x,) {} /// none: continued | 57 static void staticx(x,) {} //# none: continued |
58 static void staticy([y, ]) {} /// none: continued | 58 static void staticy([y, ]) {} //# none: continued |
59 static void staticxy(x, [y, ]) {} /// none: continued | 59 static void staticxy(x, [y, ]) {} //# none: continued |
60 static void staticz({z, }) {} /// none: continued | 60 static void staticz({z, }) {} //# none: continued |
61 static void staticxz(x, {z, }) {} /// none: continued | 61 static void staticxz(x, {z, }) {} //# none: continued |
62 | 62 |
63 static void set staticsetx(x, ) {} /// none: continued | 63 static void set staticsetx(x, ) {} //# none: continued |
64 | 64 |
65 // Instance members | 65 // Instance members |
66 void instancex(x,) {} /// none: continued | 66 void instancex(x,) {} //# none: continued |
67 void instancey([y, ]) {} /// none: continued | 67 void instancey([y, ]) {} //# none: continued |
68 void instancexy(x, [y, ]) {} /// none: continued | 68 void instancexy(x, [y, ]) {} //# none: continued |
69 void instancez({z, }) {} /// none: continued | 69 void instancez({z, }) {} //# none: continued |
70 void instancexz(x, {z, }) {} /// none: continued | 70 void instancexz(x, {z, }) {} //# none: continued |
71 | 71 |
72 void set instancesetx(x, ) {} /// none: continued | 72 void set instancesetx(x, ) {} //# none: continued |
73 | 73 |
74 operator +(x, ) => this; /// none: continued | 74 operator +(x, ) => this; //# none: continued |
75 operator []=(x, y, ) {} /// none: continued | 75 operator []=(x, y, ) {} //# none: continued |
76 } | 76 } |
77 | 77 |
78 main() { | 78 main() { |
79 testCalls(); /// none: continued | 79 testCalls(); //# none: continued |
80 // Make sure the cases are checked. | 80 // Make sure the cases are checked. |
81 testBadCalls(); | 81 testBadCalls(); |
82 } | 82 } |
83 | 83 |
84 void testCalls() { | 84 void testCalls() { |
85 // Check that all functions can be called normally | 85 // Check that all functions can be called normally |
86 topx(x); /// none: continued | 86 topx(x); //# none: continued |
87 topy(y); /// none: continued | 87 topy(y); //# none: continued |
88 topxy(x, y); /// none: continued | 88 topxy(x, y); //# none: continued |
89 topz(); /// none: continued | 89 topz(); //# none: continued |
90 topz(z: z); /// none: continued | 90 topz(z: z); //# none: continued |
91 topxz(x); /// none: continued | 91 topxz(x); //# none: continued |
92 topxz(x, z: z); /// none: continued | 92 topxz(x, z: z); //# none: continued |
93 topsetx = x; /// none: continued | 93 topsetx = x; //# none: continued |
94 afterDefaultValueY(); /// none: continued | 94 afterDefaultValueY(); //# none: continued |
95 afterDefaultValueY(y); /// none: continued | 95 afterDefaultValueY(y); //# none: continued |
96 afterDefaultValueZ(); /// none: continued | 96 afterDefaultValueZ(); //# none: continued |
97 afterDefaultValueZ(z: z); /// none: continued | 97 afterDefaultValueZ(z: z); //# none: continued |
98 new C.x(x); /// none: continued | 98 new C.x(x); //# none: continued |
99 new C.xy(x); /// none: continued | 99 new C.xy(x); //# none: continued |
100 new C.xy(x, y); /// none: continued | 100 new C.xy(x, y); //# none: continued |
101 new C.y(y); /// none: continued | 101 new C.y(y); //# none: continued |
102 new C.xz(x); /// none: continued | 102 new C.xz(x); //# none: continued |
103 new C.xz(x, z: z); /// none: continued | 103 new C.xz(x, z: z); //# none: continued |
104 new C.z(z: z); /// none: continued | 104 new C.z(z: z); //# none: continued |
105 C.staticx(x); /// none: continued | 105 C.staticx(x); //# none: continued |
106 C.staticy(y); /// none: continued | 106 C.staticy(y); //# none: continued |
107 C.staticxy(x); /// none: continued | 107 C.staticxy(x); //# none: continued |
108 C.staticxy(x, y); /// none: continued | 108 C.staticxy(x, y); //# none: continued |
109 C.staticz(); /// none: continued | 109 C.staticz(); //# none: continued |
110 C.staticz(z: z); /// none: continued | 110 C.staticz(z: z); //# none: continued |
111 C.staticxz(x); /// none: continued | 111 C.staticxz(x); //# none: continued |
112 C.staticxz(x, z: z); /// none: continued | 112 C.staticxz(x, z: z); //# none: continued |
113 C.staticsetx = x; /// none: continued | 113 C.staticsetx = x; //# none: continued |
114 c.instancex(x); /// none: continued | 114 c.instancex(x); //# none: continued |
115 c.instancey(); /// none: continued | 115 c.instancey(); //# none: continued |
116 c.instancey(y); /// none: continued | 116 c.instancey(y); //# none: continued |
117 c.instancexy(x); /// none: continued | 117 c.instancexy(x); //# none: continued |
118 c.instancexy(x, y); /// none: continued | 118 c.instancexy(x, y); //# none: continued |
119 c.instancez(); /// none: continued | 119 c.instancez(); //# none: continued |
120 c.instancez(z: z); /// none: continued | 120 c.instancez(z: z); //# none: continued |
121 c.instancexz(x); /// none: continued | 121 c.instancexz(x); //# none: continued |
122 c.instancexz(x, z: z); /// none: continued | 122 c.instancexz(x, z: z); //# none: continued |
123 c.instancesetx = x; /// none: continued | 123 c.instancesetx = x; //# none: continued |
124 c + x; /// none: continued | 124 c + x; //# none: continued |
125 c[x] = y; /// none: continued | 125 c[x] = y; //# none: continued |
126 | 126 |
127 // Call with extra comma (not possible for setters and operators). | 127 // Call with extra comma (not possible for setters and operators). |
128 topx(x, ); /// none: continued | 128 topx(x, ); //# none: continued |
129 topy(y, ); /// none: continued | 129 topy(y, ); //# none: continued |
130 topxy(x, y, ); /// none: continued | 130 topxy(x, y, ); //# none: continued |
131 topxy(x, ); /// none: continued | 131 topxy(x, ); //# none: continued |
132 topz(z: z, ); /// none: continued | 132 topz(z: z, ); //# none: continued |
133 topxz(x, ); /// none: continued | 133 topxz(x, ); //# none: continued |
134 topxz(x, z: z, ); /// none: continued | 134 topxz(x, z: z, ); //# none: continued |
135 new C.x(x, ); /// none: continued | 135 new C.x(x, ); //# none: continued |
136 new C.xy(x, y, ); /// none: continued | 136 new C.xy(x, y, ); //# none: continued |
137 new C.xy(x, ); /// none: continued | 137 new C.xy(x, ); //# none: continued |
138 new C.y(y, ); /// none: continued | 138 new C.y(y, ); //# none: continued |
139 new C.xz(x, ); /// none: continued | 139 new C.xz(x, ); //# none: continued |
140 new C.xz(x, z: z, ); /// none: continued | 140 new C.xz(x, z: z, ); //# none: continued |
141 new C.z(z: z, ); /// none: continued | 141 new C.z(z: z, ); //# none: continued |
142 C.staticx(x, ); /// none: continued | 142 C.staticx(x, ); //# none: continued |
143 C.staticy(y, ); /// none: continued | 143 C.staticy(y, ); //# none: continued |
144 C.staticxy(x, y, ); /// none: continued | 144 C.staticxy(x, y, ); //# none: continued |
145 C.staticxy(x, ); /// none: continued | 145 C.staticxy(x, ); //# none: continued |
146 C.staticz(z: z, ); /// none: continued | 146 C.staticz(z: z, ); //# none: continued |
147 C.staticxz(x, ); /// none: continued | 147 C.staticxz(x, ); //# none: continued |
148 C.staticxz(x, z: z, ); /// none: continued | 148 C.staticxz(x, z: z, ); //# none: continued |
149 c.instancex(x, ); /// none: continued | 149 c.instancex(x, ); //# none: continued |
150 c.instancey(y, ); /// none: continued | 150 c.instancey(y, ); //# none: continued |
151 c.instancexy(x, y, ); /// none: continued | 151 c.instancexy(x, y, ); //# none: continued |
152 c.instancexy(x, ); /// none: continued | 152 c.instancexy(x, ); //# none: continued |
153 c.instancez(z: z, ); /// none: continued | 153 c.instancez(z: z, ); //# none: continued |
154 c.instancexz(x, ); /// none: continued | 154 c.instancexz(x, ); //# none: continued |
155 c.instancexz(x, z: z, ); /// none: continued | 155 c.instancexz(x, z: z, ); //# none: continued |
156 | 156 |
157 // Typedefs work as expected. | 157 // Typedefs work as expected. |
158 if (topx is! fx) throw "Bad type: $fx"; /// none: continued | 158 if (topx is! fx) throw "Bad type: $fx"; //# none: continued |
159 if (topy is! fy) throw "Bad type: $fy"; /// none: continued | 159 if (topy is! fy) throw "Bad type: $fy"; //# none: continued |
160 if (topxy is! fxy) throw "Bad type: $fxy"; /// none: continued | 160 if (topxy is! fxy) throw "Bad type: $fxy"; //# none: continued |
161 if (topz is! fz) throw "Bad type: $fz"; /// none: continued | 161 if (topz is! fz) throw "Bad type: $fz"; //# none: continued |
162 if (topxz is! fxz) throw "Bad type: $fxz"; /// none: continued | 162 if (topxz is! fxz) throw "Bad type: $fxz"; //# none: continued |
163 | 163 |
164 // Parameter types work (checked mode only test). | 164 // Parameter types work (checked mode only test). |
165 argfx(topx); /// none: continued | 165 argfx(topx); //# none: continued |
166 argfy(topy); /// none: continued | 166 argfy(topy); //# none: continued |
167 argfxy(topxy); /// none: continued | 167 argfxy(topxy); //# none: continued |
168 argfz(topz); /// none: continued | 168 argfz(topz); //# none: continued |
169 argfxz(topxz); /// none: continued | 169 argfxz(topxz); //# none: continued |
170 } | 170 } |
171 | 171 |
172 // Invalid syntax. This was invalid syntax before the addition of trailing | 172 // Invalid syntax. This was invalid syntax before the addition of trailing |
173 // commas too, and should stay that way. | 173 // commas too, and should stay that way. |
174 void topBadEmpty(,) {} /// 1: compile-time error | 174 void topBadEmpty(,) {} //# 1: compile-time error |
175 void topBadStart(, a) {} /// 2: compile-time error | 175 void topBadStart(, a) {} //# 2: compile-time error |
176 void topBadEnd(a,,) {} /// 3: compile-time error | 176 void topBadEnd(a,,) {} //# 3: compile-time error |
177 void topBadMiddle(a,, b) {} /// 4: compile-time error | 177 void topBadMiddle(a,, b) {} //# 4: compile-time error |
178 void topBadPosEmpty([]) {} /// 5: compile-time error | 178 void topBadPosEmpty([]) {} //# 5: compile-time error |
179 void topBadPosEmpty(,[]) {} /// 6: compile-time error | 179 void topBadPosEmpty(,[]) {} //# 6: compile-time error |
180 void topBadPosEmpty([,]) {} /// 7: compile-time error | 180 void topBadPosEmpty([,]) {} //# 7: compile-time error |
181 void topBadPosEmpty([],) {} /// 8: compile-time error | 181 void topBadPosEmpty([],) {} //# 8: compile-time error |
182 void topBadPosStart(,[a]) {} /// 9: compile-time error | 182 void topBadPosStart(,[a]) {} //# 9: compile-time error |
183 void topBadPosStart([, a]) {} /// 10: compile-time error | 183 void topBadPosStart([, a]) {} //# 10: compile-time error |
184 void topBadPosEnd([a,,]) {} /// 11: compile-time error | 184 void topBadPosEnd([a,,]) {} //# 11: compile-time error |
185 void topBadPosStart([a],) {} /// 12: compile-time error | 185 void topBadPosStart([a],) {} //# 12: compile-time error |
186 void topBadPosMiddle([a,, b]) {} /// 13: compile-time error | 186 void topBadPosMiddle([a,, b]) {} //# 13: compile-time error |
187 void topBadNamEmpty({}) {} /// 14: compile-time error | 187 void topBadNamEmpty({}) {} //# 14: compile-time error |
188 void topBadNamEmpty(,{}) {} /// 15: compile-time error | 188 void topBadNamEmpty(,{}) {} //# 15: compile-time error |
189 void topBadNamEmpty({,}) {} /// 16: compile-time error | 189 void topBadNamEmpty({,}) {} //# 16: compile-time error |
190 void topBadNamEmpty({},) {} /// 17: compile-time error | 190 void topBadNamEmpty({},) {} //# 17: compile-time error |
191 void topBadNamStart(,{a}) {} /// 18: compile-time error | 191 void topBadNamStart(,{a}) {} //# 18: compile-time error |
192 void topBadNamStart({, a}) {} /// 19: compile-time error | 192 void topBadNamStart({, a}) {} //# 19: compile-time error |
193 void topBadNamEnd({a,,}) {} /// 20: compile-time error | 193 void topBadNamEnd({a,,}) {} //# 20: compile-time error |
194 void topBadNamStart({a},) {} /// 21: compile-time error | 194 void topBadNamStart({a},) {} //# 21: compile-time error |
195 void topBadNamMiddle({a,, b}) {} /// 22: compile-time error | 195 void topBadNamMiddle({a,, b}) {} //# 22: compile-time error |
196 void set topSetBadEmpty(,) {} /// 23: compile-time error | 196 void set topSetBadEmpty(,) {} //# 23: compile-time error |
197 void set topSetBadStart(, a) {} /// 24: compile-time error | 197 void set topSetBadStart(, a) {} //# 24: compile-time error |
198 void set topSetBadEnd(a,,) {} /// 25: compile-time error | 198 void set topSetBadEnd(a,,) {} //# 25: compile-time error |
199 void set topSetBadMiddle(a,, b) {} /// 26: compile-time error | 199 void set topSetBadMiddle(a,, b) {} //# 26: compile-time error |
200 class Bad { | 200 class Bad { |
201 Bad() {} | 201 Bad() {} |
202 Bad.empty(,) {} /// 27: compile-time error | 202 Bad.empty(,) {} //# 27: compile-time error |
203 Bad.start(, a) {} /// 28: compile-time error | 203 Bad.start(, a) {} //# 28: compile-time error |
204 Bad.end(a,,) {} /// 29: compile-time error | 204 Bad.end(a,,) {} //# 29: compile-time error |
205 Bad.middle(a,, b) {} /// 30: compile-time error | 205 Bad.middle(a,, b) {} //# 30: compile-time error |
206 Bad.posEmpty([]) {} /// 31: compile-time error | 206 Bad.posEmpty([]) {} //# 31: compile-time error |
207 Bad.posEmpty(,[]) {} /// 32: compile-time error | 207 Bad.posEmpty(,[]) {} //# 32: compile-time error |
208 Bad.posEmpty([,]) {} /// 33: compile-time error | 208 Bad.posEmpty([,]) {} //# 33: compile-time error |
209 Bad.posEmpty([],) {} /// 34: compile-time error | 209 Bad.posEmpty([],) {} //# 34: compile-time error |
210 Bad.posStart(,[a]) {} /// 35: compile-time error | 210 Bad.posStart(,[a]) {} //# 35: compile-time error |
211 Bad.posStart([, a]) {} /// 36: compile-time error | 211 Bad.posStart([, a]) {} //# 36: compile-time error |
212 Bad.posEnd([a,,]) {} /// 37: compile-time error | 212 Bad.posEnd([a,,]) {} //# 37: compile-time error |
213 Bad.posStart([a],) {} /// 38: compile-time error | 213 Bad.posStart([a],) {} //# 38: compile-time error |
214 Bad.PosMiddle([a,, b]) {} /// 39: compile-time error | 214 Bad.PosMiddle([a,, b]) {} //# 39: compile-time error |
215 Bad.namEmpty({}) {} /// 40: compile-time error | 215 Bad.namEmpty({}) {} //# 40: compile-time error |
216 Bad.namEmpty(,{}) {} /// 41: compile-time error | 216 Bad.namEmpty(,{}) {} //# 41: compile-time error |
217 Bad.namEmpty({,}) {} /// 42: compile-time error | 217 Bad.namEmpty({,}) {} //# 42: compile-time error |
218 Bad.namEmpty({},) {} /// 43: compile-time error | 218 Bad.namEmpty({},) {} //# 43: compile-time error |
219 Bad.namStart(,{a}) {} /// 44: compile-time error | 219 Bad.namStart(,{a}) {} //# 44: compile-time error |
220 Bad.namStart({, a}) {} /// 45: compile-time error | 220 Bad.namStart({, a}) {} //# 45: compile-time error |
221 Bad.namEnd({a,,}) {} /// 46: compile-time error | 221 Bad.namEnd({a,,}) {} //# 46: compile-time error |
222 Bad.namStart({a},) {} /// 47: compile-time error | 222 Bad.namStart({a},) {} //# 47: compile-time error |
223 Bad.namMiddle({a,, b}) {} /// 48: compile-time error | 223 Bad.namMiddle({a,, b}) {} //# 48: compile-time error |
224 static void staticBadEmpty(,) {} /// 49: compile-time error | 224 static void staticBadEmpty(,) {} //# 49: compile-time error |
225 static void staticBadStart(, a) {} /// 50: compile-time error | 225 static void staticBadStart(, a) {} //# 50: compile-time error |
226 static void staticBadEnd(a,,) {} /// 51: compile-time error | 226 static void staticBadEnd(a,,) {} //# 51: compile-time error |
227 static void staticBadMiddle(a,, b) {} /// 52: compile-time error | 227 static void staticBadMiddle(a,, b) {} //# 52: compile-time error |
228 static void staticBadPosEmpty([]) {} /// 53: compile-time error | 228 static void staticBadPosEmpty([]) {} //# 53: compile-time error |
229 static void staticBadPosEmpty(,[]) {} /// 54: compile-time error | 229 static void staticBadPosEmpty(,[]) {} //# 54: compile-time error |
230 static void staticBadPosEmpty([,]) {} /// 55: compile-time error | 230 static void staticBadPosEmpty([,]) {} //# 55: compile-time error |
231 static void staticBadPosEmpty([],) {} /// 56: compile-time error | 231 static void staticBadPosEmpty([],) {} //# 56: compile-time error |
232 static void staticBadPosStart(,[a]) {} /// 57: compile-time error | 232 static void staticBadPosStart(,[a]) {} //# 57: compile-time error |
233 static void staticBadPosStart([, a]) {} /// 58: compile-time error | 233 static void staticBadPosStart([, a]) {} //# 58: compile-time error |
234 static void staticBadPosEnd([a,,]) {} /// 59: compile-time error | 234 static void staticBadPosEnd([a,,]) {} //# 59: compile-time error |
235 static void staticBadPosStart([a],) {} /// 60: compile-time error | 235 static void staticBadPosStart([a],) {} //# 60: compile-time error |
236 static void staticBadPosMiddle([a,, b]) {} /// 61: compile-time error | 236 static void staticBadPosMiddle([a,, b]) {} //# 61: compile-time error |
237 static void staticBadNamEmpty({}) {} /// 62: compile-time error | 237 static void staticBadNamEmpty({}) {} //# 62: compile-time error |
238 static void staticBadNamEmpty(,{}) {} /// 63: compile-time error | 238 static void staticBadNamEmpty(,{}) {} //# 63: compile-time error |
239 static void staticBadNamEmpty({,}) {} /// 64: compile-time error | 239 static void staticBadNamEmpty({,}) {} //# 64: compile-time error |
240 static void staticBadNamEmpty({},) {} /// 65: compile-time error | 240 static void staticBadNamEmpty({},) {} //# 65: compile-time error |
241 static void staticBadNamStart(,{a}) {} /// 66: compile-time error | 241 static void staticBadNamStart(,{a}) {} //# 66: compile-time error |
242 static void staticBadNamStart({, a}) {} /// 67: compile-time error | 242 static void staticBadNamStart({, a}) {} //# 67: compile-time error |
243 static void staticBadNamEnd({a,,}) {} /// 68: compile-time error | 243 static void staticBadNamEnd({a,,}) {} //# 68: compile-time error |
244 static void staticBadNamStart({a},) {} /// 69: compile-time error | 244 static void staticBadNamStart({a},) {} //# 69: compile-time error |
245 static void staticBadNamMiddle({a,, b}) {} /// 70: compile-time error | 245 static void staticBadNamMiddle({a,, b}) {} //# 70: compile-time error |
246 static void set staticSetBadEmpty(,) {} /// 71: compile-time error | 246 static void set staticSetBadEmpty(,) {} //# 71: compile-time error |
247 static void set staticSetBadStart(, a) {} /// 72: compile-time error | 247 static void set staticSetBadStart(, a) {} //# 72: compile-time error |
248 static void set staticSetBadEnd(a,,) {} /// 73: compile-time error | 248 static void set staticSetBadEnd(a,,) {} //# 73: compile-time error |
249 static void set staticSetBadMiddle(a,, b) {} /// 74: compile-time error | 249 static void set staticSetBadMiddle(a,, b) {} //# 74: compile-time error |
250 void instanceBadEmpty(,) {} /// 75: compile-time error | 250 void instanceBadEmpty(,) {} //# 75: compile-time error |
251 void instanceBadStart(, a) {} /// 76: compile-time error | 251 void instanceBadStart(, a) {} //# 76: compile-time error |
252 void instanceBadEnd(a,,) {} /// 77: compile-time error | 252 void instanceBadEnd(a,,) {} //# 77: compile-time error |
253 void instanceBadMiddle(a,, b) {} /// 78: compile-time error | 253 void instanceBadMiddle(a,, b) {} //# 78: compile-time error |
254 void instanceBadPosEmpty([]) {} /// 79: compile-time error | 254 void instanceBadPosEmpty([]) {} //# 79: compile-time error |
255 void instanceBadPosEmpty(,[]) {} /// 80: compile-time error | 255 void instanceBadPosEmpty(,[]) {} //# 80: compile-time error |
256 void instanceBadPosEmpty([,]) {} /// 81: compile-time error | 256 void instanceBadPosEmpty([,]) {} //# 81: compile-time error |
257 void instanceBadPosEmpty([],) {} /// 82: compile-time error | 257 void instanceBadPosEmpty([],) {} //# 82: compile-time error |
258 void instanceBadPosStart(,[a]) {} /// 83: compile-time error | 258 void instanceBadPosStart(,[a]) {} //# 83: compile-time error |
259 void instanceBadPosStart([, a]) {} /// 84: compile-time error | 259 void instanceBadPosStart([, a]) {} //# 84: compile-time error |
260 void instanceBadPosEnd([a,,]) {} /// 85: compile-time error | 260 void instanceBadPosEnd([a,,]) {} //# 85: compile-time error |
261 void instanceBadPosStart([a],) {} /// 86: compile-time error | 261 void instanceBadPosStart([a],) {} //# 86: compile-time error |
262 void instanceBadPosMiddle([a,, b]) {} /// 87: compile-time error | 262 void instanceBadPosMiddle([a,, b]) {} //# 87: compile-time error |
263 void instanceBadNamEmpty({}) {} /// 88: compile-time error | 263 void instanceBadNamEmpty({}) {} //# 88: compile-time error |
264 void instanceBadNamEmpty(,{}) {} /// 89: compile-time error | 264 void instanceBadNamEmpty(,{}) {} //# 89: compile-time error |
265 void instanceBadNamEmpty({,}) {} /// 90: compile-time error | 265 void instanceBadNamEmpty({,}) {} //# 90: compile-time error |
266 void instanceBadNamEmpty({},) {} /// 91: compile-time error | 266 void instanceBadNamEmpty({},) {} //# 91: compile-time error |
267 void instanceBadNamStart(,{a}) {} /// 92: compile-time error | 267 void instanceBadNamStart(,{a}) {} //# 92: compile-time error |
268 void instanceBadNamStart({, a}) {} /// 93: compile-time error | 268 void instanceBadNamStart({, a}) {} //# 93: compile-time error |
269 void instanceBadNamEnd({a,,}) {} /// 94: compile-time error | 269 void instanceBadNamEnd({a,,}) {} //# 94: compile-time error |
270 void instanceBadNamStart({a},) {} /// 95: compile-time error | 270 void instanceBadNamStart({a},) {} //# 95: compile-time error |
271 void instanceBadNamMiddle({a,, b}) {} /// 96: compile-time error | 271 void instanceBadNamMiddle({a,, b}) {} //# 96: compile-time error |
272 void set instanceSetBadEmpty(,) {} /// 97: compile-time error | 272 void set instanceSetBadEmpty(,) {} //# 97: compile-time error |
273 void set instanceSetBadStart(, a) {} /// 98: compile-time error | 273 void set instanceSetBadStart(, a) {} //# 98: compile-time error |
274 void set instanceSetBadEnd(a,,) {} /// 99: compile-time error | 274 void set instanceSetBadEnd(a,,) {} //# 99: compile-time error |
275 void set instanceSetBadMiddle(a,, b) {} /// 100: compile-time error | 275 void set instanceSetBadMiddle(a,, b) {} //# 100: compile-time error |
276 void operator *(,); /// 101: compile-time error | 276 void operator *(,); //# 101: compile-time error |
277 void operator *(, a); /// 102: compile-time error | 277 void operator *(, a); //# 102: compile-time error |
278 void operator *(a,,); /// 103: compile-time error | 278 void operator *(a,,); //# 103: compile-time error |
279 void operator []=(, a); /// 104: compile-time error | 279 void operator []=(, a); //# 104: compile-time error |
280 void operator []=(a,,); /// 105: compile-time error | 280 void operator []=(a,,); //# 105: compile-time error |
281 void operator []=(a,, b); /// 106: compile-time error | 281 void operator []=(a,, b); //# 106: compile-time error |
282 void operator []=(a,); /// 107: compile-time error | 282 void operator []=(a,); //# 107: compile-time error |
283 | 283 |
284 method() { | 284 method() { |
285 // Local methods. | 285 // Local methods. |
286 void localBadEmpty(,) {} /// 108: compile-time error | 286 void localBadEmpty(,) {} //# 108: compile-time error |
287 void localBadStart(, a) {} /// 109: compile-time error | 287 void localBadStart(, a) {} //# 109: compile-time error |
288 void localBadEnd(a,,) {} /// 110: compile-time error | 288 void localBadEnd(a,,) {} //# 110: compile-time error |
289 void localBadMiddle(a,, b) {} /// 111: compile-time error | 289 void localBadMiddle(a,, b) {} //# 111: compile-time error |
290 void localBadPosEmpty([]) {} /// 112: compile-time error | 290 void localBadPosEmpty([]) {} //# 112: compile-time error |
291 void localBadPosEmpty(,[]) {} /// 113: compile-time error | 291 void localBadPosEmpty(,[]) {} //# 113: compile-time error |
292 void localBadPosEmpty([,]) {} /// 114: compile-time error | 292 void localBadPosEmpty([,]) {} //# 114: compile-time error |
293 void localBadPosEmpty([],) {} /// 115: compile-time error | 293 void localBadPosEmpty([],) {} //# 115: compile-time error |
294 void localBadPosStart(,[a]) {} /// 116: compile-time error | 294 void localBadPosStart(,[a]) {} //# 116: compile-time error |
295 void localBadPosStart([, a]) {} /// 117: compile-time error | 295 void localBadPosStart([, a]) {} //# 117: compile-time error |
296 void localBadPosEnd([a,,]) {} /// 118: compile-time error | 296 void localBadPosEnd([a,,]) {} //# 118: compile-time error |
297 void localBadPosStart([a],) {} /// 119: compile-time error | 297 void localBadPosStart([a],) {} //# 119: compile-time error |
298 void localBadPosMiddle([a,, b]) {} /// 120: compile-time error | 298 void localBadPosMiddle([a,, b]) {} //# 120: compile-time error |
299 void localBadNamEmpty({}) {} /// 121: compile-time error | 299 void localBadNamEmpty({}) {} //# 121: compile-time error |
300 void localBadNamEmpty(,{}) {} /// 122: compile-time error | 300 void localBadNamEmpty(,{}) {} //# 122: compile-time error |
301 void localBadNamEmpty({,}) {} /// 123: compile-time error | 301 void localBadNamEmpty({,}) {} //# 123: compile-time error |
302 void localBadNamEmpty({},) {} /// 124: compile-time error | 302 void localBadNamEmpty({},) {} //# 124: compile-time error |
303 void localBadNamStart(,{a}) {} /// 125: compile-time error | 303 void localBadNamStart(,{a}) {} //# 125: compile-time error |
304 void localBadNamStart({, a}) {} /// 126: compile-time error | 304 void localBadNamStart({, a}) {} //# 126: compile-time error |
305 void localBadNamEnd({a,,}) {} /// 127: compile-time error | 305 void localBadNamEnd({a,,}) {} //# 127: compile-time error |
306 void localBadNamStart({a},) {} /// 128: compile-time error | 306 void localBadNamStart({a},) {} //# 128: compile-time error |
307 void localBadNamMiddle({a,, b}) {} /// 129: compile-time error | 307 void localBadNamMiddle({a,, b}) {} //# 129: compile-time error |
308 | 308 |
309 // invalid calls. | 309 // invalid calls. |
310 | 310 |
311 topx(,); /// 130: compile-time error | 311 topx(,); //# 130: compile-time error |
312 topy(,); /// 131: compile-time error | 312 topy(,); //# 131: compile-time error |
313 topz(,); /// 132: compile-time error | 313 topz(,); //# 132: compile-time error |
314 topx(, x); /// 133: compile-time error | 314 topx(, x); //# 133: compile-time error |
315 topz(, z:z); /// 134: compile-time error | 315 topz(, z:z); //# 134: compile-time error |
316 topxy(x,, y); /// 135: compile-time error | 316 topxy(x,, y); //# 135: compile-time error |
317 topxz(x,, z:z); /// 136: compile-time error | 317 topxz(x,, z:z); //# 136: compile-time error |
318 topx(x,,); /// 137: compile-time error | 318 topx(x,,); //# 137: compile-time error |
319 topz(z:z,,); /// 138: compile-time error | 319 topz(z:z,,); //# 138: compile-time error |
320 | 320 |
321 new C.x(,); /// 139: compile-time error | 321 new C.x(,); //# 139: compile-time error |
322 new C.y(,); /// 140: compile-time error | 322 new C.y(,); //# 140: compile-time error |
323 new C.z(,); /// 141: compile-time error | 323 new C.z(,); //# 141: compile-time error |
324 new C.x(, x); /// 142: compile-time error | 324 new C.x(, x); //# 142: compile-time error |
325 new C.z(, z:z); /// 143: compile-time error | 325 new C.z(, z:z); //# 143: compile-time error |
326 new C.xy(x,, y); /// 144: compile-time error | 326 new C.xy(x,, y); //# 144: compile-time error |
327 new C.xz(x,, z:z); /// 145: compile-time error | 327 new C.xz(x,, z:z); //# 145: compile-time error |
328 new C.x(x,,); /// 146: compile-time error | 328 new C.x(x,,); //# 146: compile-time error |
329 new C.z(z:z,,); /// 147: compile-time error | 329 new C.z(z:z,,); //# 147: compile-time error |
330 | 330 |
331 C.staticx(,); /// 148: compile-time error | 331 C.staticx(,); //# 148: compile-time error |
332 C.staticy(,); /// 149: compile-time error | 332 C.staticy(,); //# 149: compile-time error |
333 C.staticz(,); /// 150: compile-time error | 333 C.staticz(,); //# 150: compile-time error |
334 C.staticx(, x); /// 151: compile-time error | 334 C.staticx(, x); //# 151: compile-time error |
335 C.staticz(, z:z); /// 152: compile-time error | 335 C.staticz(, z:z); //# 152: compile-time error |
336 C.staticxy(x,, y); /// 153: compile-time error | 336 C.staticxy(x,, y); //# 153: compile-time error |
337 C.staticxz(x,, z:z); /// 154: compile-time error | 337 C.staticxz(x,, z:z); //# 154: compile-time error |
338 C.staticx(x,,); /// 155: compile-time error | 338 C.staticx(x,,); //# 155: compile-time error |
339 C.staticz(z:z,,); /// 156: compile-time error | 339 C.staticz(z:z,,); //# 156: compile-time error |
340 | 340 |
341 c.instancex(,); /// 157: compile-time error | 341 c.instancex(,); //# 157: compile-time error |
342 c.instancey(,); /// 158: compile-time error | 342 c.instancey(,); //# 158: compile-time error |
343 c.instancez(,); /// 159: compile-time error | 343 c.instancez(,); //# 159: compile-time error |
344 c.instancex(, x); /// 160: compile-time error | 344 c.instancex(, x); //# 160: compile-time error |
345 c.instancez(, z:z); /// 161: compile-time error | 345 c.instancez(, z:z); //# 161: compile-time error |
346 c.instancexy(x,, y); /// 162: compile-time error | 346 c.instancexy(x,, y); //# 162: compile-time error |
347 c.instancexz(x,, z:z); /// 163: compile-time error | 347 c.instancexz(x,, z:z); //# 163: compile-time error |
348 c.instancex(x,,); /// 164: compile-time error | 348 c.instancex(x,,); //# 164: compile-time error |
349 c.instancez(z:z,,); /// 165: compile-time error | 349 c.instancez(z:z,,); //# 165: compile-time error |
350 | 350 |
351 c[x,] = y; /// 166: compile-time error | 351 c[x,] = y; //# 166: compile-time error |
352 } | 352 } |
353 | 353 |
354 // As parameters: | 354 // As parameters: |
355 void f(void topBadEmpty(,)) {} /// 167: compile-time error | 355 void f(void topBadEmpty(,)) {} //# 167: compile-time error |
356 void f(void topBadStart(, a)) {} /// 168: compile-time error | 356 void f(void topBadStart(, a)) {} //# 168: compile-time error |
357 void f(void topBadEnd(a,,)) {} /// 169: compile-time error | 357 void f(void topBadEnd(a,,)) {} //# 169: compile-time error |
358 void f(void topBadMiddle(a,, b)) {} /// 170: compile-time error | 358 void f(void topBadMiddle(a,, b)) {} //# 170: compile-time error |
359 void f(void topBadPosEmpty([])) {} /// 171: compile-time error | 359 void f(void topBadPosEmpty([])) {} //# 171: compile-time error |
360 void f(void topBadPosEmpty(,[])) {} /// 172: compile-time error | 360 void f(void topBadPosEmpty(,[])) {} //# 172: compile-time error |
361 void f(void topBadPosEmpty([,])) {} /// 173: compile-time error | 361 void f(void topBadPosEmpty([,])) {} //# 173: compile-time error |
362 void f(void topBadPosEmpty([],)) {} /// 174: compile-time error | 362 void f(void topBadPosEmpty([],)) {} //# 174: compile-time error |
363 void f(void topBadPosStart(,[a])) {} /// 175: compile-time error | 363 void f(void topBadPosStart(,[a])) {} //# 175: compile-time error |
364 void f(void topBadPosStart([, a])) {} /// 176: compile-time error | 364 void f(void topBadPosStart([, a])) {} //# 176: compile-time error |
365 void f(void topBadPosEnd([a,,])) {} /// 177: compile-time error | 365 void f(void topBadPosEnd([a,,])) {} //# 177: compile-time error |
366 void f(void topBadPosStart([a],)) {} /// 178: compile-time error | 366 void f(void topBadPosStart([a],)) {} //# 178: compile-time error |
367 void f(void topBadPosMiddle([a,, b])) {} /// 179: compile-time error | 367 void f(void topBadPosMiddle([a,, b])) {} //# 179: compile-time error |
368 void f(void topBadNamEmpty({})) {} /// 180: compile-time error | 368 void f(void topBadNamEmpty({})) {} //# 180: compile-time error |
369 void f(void topBadNamEmpty(,{})) {} /// 181: compile-time error | 369 void f(void topBadNamEmpty(,{})) {} //# 181: compile-time error |
370 void f(void topBadNamEmpty({,})) {} /// 182: compile-time error | 370 void f(void topBadNamEmpty({,})) {} //# 182: compile-time error |
371 void f(void topBadNamEmpty({},)) {} /// 183: compile-time error | 371 void f(void topBadNamEmpty({},)) {} //# 183: compile-time error |
372 void f(void topBadNamStart(,{a})) {} /// 184: compile-time error | 372 void f(void topBadNamStart(,{a})) {} //# 184: compile-time error |
373 void f(void topBadNamStart({, a})) {} /// 185: compile-time error | 373 void f(void topBadNamStart({, a})) {} //# 185: compile-time error |
374 void f(void topBadNamEnd({a,,})) {} /// 186: compile-time error | 374 void f(void topBadNamEnd({a,,})) {} //# 186: compile-time error |
375 void f(void topBadNamStart({a},)) {} /// 187: compile-time error | 375 void f(void topBadNamStart({a},)) {} //# 187: compile-time error |
376 void f(void topBadNamMiddle({a,, b})) {} /// 188: compile-time error | 376 void f(void topBadNamMiddle({a,, b})) {} //# 188: compile-time error |
377 } | 377 } |
378 | 378 |
379 // As typedefs | 379 // As typedefs |
380 typedef void BadEmpty(,); /// 189: compile-time error | 380 typedef void BadEmpty(,); //# 189: compile-time error |
381 typedef void BadStart(, a); /// 190: compile-time error | 381 typedef void BadStart(, a); //# 190: compile-time error |
382 typedef void BadEnd(a,,); /// 191: compile-time error | 382 typedef void BadEnd(a,,); //# 191: compile-time error |
383 typedef void BadMiddle(a,, b); /// 192: compile-time error | 383 typedef void BadMiddle(a,, b); //# 192: compile-time error |
384 typedef void BadPosEmpty([]); /// 193: compile-time error | 384 typedef void BadPosEmpty([]); //# 193: compile-time error |
385 typedef void BadPosEmpty(,[]); /// 194: compile-time error | 385 typedef void BadPosEmpty(,[]); //# 194: compile-time error |
386 typedef void BadPosEmpty([,]); /// 195: compile-time error | 386 typedef void BadPosEmpty([,]); //# 195: compile-time error |
387 typedef void BadPosEmpty([],); /// 196: compile-time error | 387 typedef void BadPosEmpty([],); //# 196: compile-time error |
388 typedef void BadPosStart(,[a]); /// 197: compile-time error | 388 typedef void BadPosStart(,[a]); //# 197: compile-time error |
389 typedef void BadPosStart([, a]); /// 198: compile-time error | 389 typedef void BadPosStart([, a]); //# 198: compile-time error |
390 typedef void BadPosEnd([a,,]); /// 199: compile-time error | 390 typedef void BadPosEnd([a,,]); //# 199: compile-time error |
391 typedef void BadPosStart([a],); /// 200: compile-time error | 391 typedef void BadPosStart([a],); //# 200: compile-time error |
392 typedef void BadPosMiddle([a,, b]); /// 201: compile-time error | 392 typedef void BadPosMiddle([a,, b]); //# 201: compile-time error |
393 typedef void BadNamEmpty({}); /// 202: compile-time error | 393 typedef void BadNamEmpty({}); //# 202: compile-time error |
394 typedef void BadNamEmpty(,{}); /// 203: compile-time error | 394 typedef void BadNamEmpty(,{}); //# 203: compile-time error |
395 typedef void BadNamEmpty({,}); /// 204: compile-time error | 395 typedef void BadNamEmpty({,}); //# 204: compile-time error |
396 typedef void BadNamEmpty({},); /// 205: compile-time error | 396 typedef void BadNamEmpty({},); //# 205: compile-time error |
397 typedef void BadNamStart(,{a}); /// 206: compile-time error | 397 typedef void BadNamStart(,{a}); //# 206: compile-time error |
398 typedef void BadNamStart({, a}); /// 207: compile-time error | 398 typedef void BadNamStart({, a}); //# 207: compile-time error |
399 typedef void BadNamEnd({a,,}); /// 208: compile-time error | 399 typedef void BadNamEnd({a,,}); //# 208: compile-time error |
400 typedef void BadNamStart({a},); /// 209: compile-time error | 400 typedef void BadNamStart({a},); //# 209: compile-time error |
401 typedef void BadNamMiddle({a,, b}); /// 210: compile-time error | 401 typedef void BadNamMiddle({a,, b}); //# 210: compile-time error |
402 | 402 |
403 void testBadCalls() { | 403 void testBadCalls() { |
404 topBadEmpty(); /// 1: continued | 404 topBadEmpty(); //# 1: continued |
405 topBadStart(); /// 2: continued | 405 topBadStart(); //# 2: continued |
406 topBadEnd(); /// 3: continued | 406 topBadEnd(); //# 3: continued |
407 topBadMiddle(); /// 4: continued | 407 topBadMiddle(); //# 4: continued |
408 topBadPosEmpty(); /// 5: continued | 408 topBadPosEmpty(); //# 5: continued |
409 topBadPosEmpty(); /// 6: continued | 409 topBadPosEmpty(); //# 6: continued |
410 topBadPosEmpty(); /// 7: continued | 410 topBadPosEmpty(); //# 7: continued |
411 topBadPosEmpty(); /// 8: continued | 411 topBadPosEmpty(); //# 8: continued |
412 topBadPosStart(); /// 9: continued | 412 topBadPosStart(); //# 9: continued |
413 topBadPosStart(); /// 10: continued | 413 topBadPosStart(); //# 10: continued |
414 topBadPosEnd(); /// 11: continued | 414 topBadPosEnd(); //# 11: continued |
415 topBadPosStart(); /// 12: continued | 415 topBadPosStart(); //# 12: continued |
416 topBadPosMiddle(); /// 13: continued | 416 topBadPosMiddle(); //# 13: continued |
417 topBadNamEmpty(); /// 14: continued | 417 topBadNamEmpty(); //# 14: continued |
418 topBadNamEmpty(); /// 15: continued | 418 topBadNamEmpty(); //# 15: continued |
419 topBadNamEmpty(); /// 16: continued | 419 topBadNamEmpty(); //# 16: continued |
420 topBadNamEmpty(); /// 17: continued | 420 topBadNamEmpty(); //# 17: continued |
421 topBadNamStart(); /// 18: continued | 421 topBadNamStart(); //# 18: continued |
422 topBadNamStart(); /// 19: continued | 422 topBadNamStart(); //# 19: continued |
423 topBadNamEnd(); /// 20: continued | 423 topBadNamEnd(); //# 20: continued |
424 topBadNamStart(); /// 21: continued | 424 topBadNamStart(); //# 21: continued |
425 topBadNamMiddle(); /// 22: continued | 425 topBadNamMiddle(); //# 22: continued |
426 topSetBadEmpty = 1; /// 23: continued | 426 topSetBadEmpty = 1; //# 23: continued |
427 topSetBadStart = 1; /// 24: continued | 427 topSetBadStart = 1; //# 24: continued |
428 topSetBadEnd = 1; /// 25: continued | 428 topSetBadEnd = 1; //# 25: continued |
429 topSetBadMiddle = 1; /// 26: continued | 429 topSetBadMiddle = 1; //# 26: continued |
430 new Bad.empty(); /// 27: continued | 430 new Bad.empty(); //# 27: continued |
431 new Bad.start(); /// 28: continued | 431 new Bad.start(); //# 28: continued |
432 new Bad.end(); /// 29: continued | 432 new Bad.end(); //# 29: continued |
433 new Bad.middle(); /// 30: continued | 433 new Bad.middle(); //# 30: continued |
434 new Bad.posEmpty(); /// 31: continued | 434 new Bad.posEmpty(); //# 31: continued |
435 new Bad.posEmpty(); /// 32: continued | 435 new Bad.posEmpty(); //# 32: continued |
436 new Bad.posEmpty(); /// 33: continued | 436 new Bad.posEmpty(); //# 33: continued |
437 new Bad.posEmpty(); /// 34: continued | 437 new Bad.posEmpty(); //# 34: continued |
438 new Bad.posStart(); /// 35: continued | 438 new Bad.posStart(); //# 35: continued |
439 new Bad.posStart(); /// 36: continued | 439 new Bad.posStart(); //# 36: continued |
440 new Bad.posEnd(); /// 37: continued | 440 new Bad.posEnd(); //# 37: continued |
441 new Bad.posStart(); /// 38: continued | 441 new Bad.posStart(); //# 38: continued |
442 new Bad.PosMiddle(); /// 39: continued | 442 new Bad.PosMiddle(); //# 39: continued |
443 new Bad.namEmpty(); /// 40: continued | 443 new Bad.namEmpty(); //# 40: continued |
444 new Bad.namEmpty(); /// 41: continued | 444 new Bad.namEmpty(); //# 41: continued |
445 new Bad.namEmpty(); /// 42: continued | 445 new Bad.namEmpty(); //# 42: continued |
446 new Bad.namEmpty(); /// 43: continued | 446 new Bad.namEmpty(); //# 43: continued |
447 new Bad.namStart(); /// 44: continued | 447 new Bad.namStart(); //# 44: continued |
448 new Bad.namStart(); /// 45: continued | 448 new Bad.namStart(); //# 45: continued |
449 new Bad.namEnd(); /// 46: continued | 449 new Bad.namEnd(); //# 46: continued |
450 new Bad.namStart(); /// 47: continued | 450 new Bad.namStart(); //# 47: continued |
451 new Bad.namMiddle(); /// 48: continued | 451 new Bad.namMiddle(); //# 48: continued |
452 Bad.staticBadEmpty(); /// 49: continued | 452 Bad.staticBadEmpty(); //# 49: continued |
453 Bad.staticBadStart(); /// 50: continued | 453 Bad.staticBadStart(); //# 50: continued |
454 Bad.staticBadEnd(); /// 51: continued | 454 Bad.staticBadEnd(); //# 51: continued |
455 Bad.staticBadMiddle(); /// 52: continued | 455 Bad.staticBadMiddle(); //# 52: continued |
456 Bad.staticBadPosEmpty(); /// 53: continued | 456 Bad.staticBadPosEmpty(); //# 53: continued |
457 Bad.staticBadPosEmpty(); /// 54: continued | 457 Bad.staticBadPosEmpty(); //# 54: continued |
458 Bad.staticBadPosEmpty(); /// 55: continued | 458 Bad.staticBadPosEmpty(); //# 55: continued |
459 Bad.staticBadPosEmpty(); /// 56: continued | 459 Bad.staticBadPosEmpty(); //# 56: continued |
460 Bad.staticBadPosStart(); /// 57: continued | 460 Bad.staticBadPosStart(); //# 57: continued |
461 Bad.staticBadPosStart(); /// 58: continued | 461 Bad.staticBadPosStart(); //# 58: continued |
462 Bad.staticBadPosEnd(); /// 59: continued | 462 Bad.staticBadPosEnd(); //# 59: continued |
463 Bad.staticBadPosStart(); /// 60: continued | 463 Bad.staticBadPosStart(); //# 60: continued |
464 Bad.staticBadPosMiddle(); /// 61: continued | 464 Bad.staticBadPosMiddle(); //# 61: continued |
465 Bad.staticBadNamEmpty(); /// 62: continued | 465 Bad.staticBadNamEmpty(); //# 62: continued |
466 Bad.staticBadNamEmpty(); /// 63: continued | 466 Bad.staticBadNamEmpty(); //# 63: continued |
467 Bad.staticBadNamEmpty(); /// 64: continued | 467 Bad.staticBadNamEmpty(); //# 64: continued |
468 Bad.staticBadNamEmpty(); /// 65: continued | 468 Bad.staticBadNamEmpty(); //# 65: continued |
469 Bad.staticBadNamStart(); /// 66: continued | 469 Bad.staticBadNamStart(); //# 66: continued |
470 Bad.staticBadNamStart(); /// 67: continued | 470 Bad.staticBadNamStart(); //# 67: continued |
471 Bad.staticBadNamEnd(); /// 68: continued | 471 Bad.staticBadNamEnd(); //# 68: continued |
472 Bad.staticBadNamStart(); /// 69: continued | 472 Bad.staticBadNamStart(); //# 69: continued |
473 Bad.staticBadNamMiddle(); /// 70: continued | 473 Bad.staticBadNamMiddle(); //# 70: continued |
474 Bad.staticSetBadEmpty = 1; /// 71: continued | 474 Bad.staticSetBadEmpty = 1; //# 71: continued |
475 Bad.staticSetBadStart = 1; /// 72: continued | 475 Bad.staticSetBadStart = 1; //# 72: continued |
476 Bad.staticSetBadEnd = 1; /// 73: continued | 476 Bad.staticSetBadEnd = 1; //# 73: continued |
477 Bad.staticSetBadMiddle = 1; /// 74: continued | 477 Bad.staticSetBadMiddle = 1; //# 74: continued |
478 | 478 |
479 var bad = new Bad(); | 479 var bad = new Bad(); |
480 bad.instanceBadEmpty(); /// 75: continued | 480 bad.instanceBadEmpty(); //# 75: continued |
481 bad.instanceBadStart(); /// 76: continued | 481 bad.instanceBadStart(); //# 76: continued |
482 bad.instanceBadEnd(); /// 77: continued | 482 bad.instanceBadEnd(); //# 77: continued |
483 bad.instanceBadMiddle(); /// 78: continued | 483 bad.instanceBadMiddle(); //# 78: continued |
484 bad.instanceBadPosEmpty(); /// 79: continued | 484 bad.instanceBadPosEmpty(); //# 79: continued |
485 bad.instanceBadPosEmpty(); /// 80: continued | 485 bad.instanceBadPosEmpty(); //# 80: continued |
486 bad.instanceBadPosEmpty(); /// 81: continued | 486 bad.instanceBadPosEmpty(); //# 81: continued |
487 bad.instanceBadPosEmpty(); /// 82: continued | 487 bad.instanceBadPosEmpty(); //# 82: continued |
488 bad.instanceBadPosStart(); /// 83: continued | 488 bad.instanceBadPosStart(); //# 83: continued |
489 bad.instanceBadPosStart(); /// 84: continued | 489 bad.instanceBadPosStart(); //# 84: continued |
490 bad.instanceBadPosEnd(); /// 85: continued | 490 bad.instanceBadPosEnd(); //# 85: continued |
491 bad.instanceBadPosStart(); /// 86: continued | 491 bad.instanceBadPosStart(); //# 86: continued |
492 bad.instanceBadPosMiddle(); /// 87: continued | 492 bad.instanceBadPosMiddle(); //# 87: continued |
493 bad.instanceBadNamEmpty(); /// 88: continued | 493 bad.instanceBadNamEmpty(); //# 88: continued |
494 bad.instanceBadNamEmpty(); /// 89: continued | 494 bad.instanceBadNamEmpty(); //# 89: continued |
495 bad.instanceBadNamEmpty(); /// 90: continued | 495 bad.instanceBadNamEmpty(); //# 90: continued |
496 bad.instanceBadNamEmpty(); /// 91: continued | 496 bad.instanceBadNamEmpty(); //# 91: continued |
497 bad.instanceBadNamStart(); /// 92: continued | 497 bad.instanceBadNamStart(); //# 92: continued |
498 bad.instanceBadNamStart(); /// 93: continued | 498 bad.instanceBadNamStart(); //# 93: continued |
499 bad.instanceBadNamEnd(); /// 94: continued | 499 bad.instanceBadNamEnd(); //# 94: continued |
500 bad.instanceBadNamStart(); /// 95: continued | 500 bad.instanceBadNamStart(); //# 95: continued |
501 bad.instanceBadNamMiddle(); /// 96: continued | 501 bad.instanceBadNamMiddle(); //# 96: continued |
502 bad.instanceSetBadEmpty = 1; /// 97: continued | 502 bad.instanceSetBadEmpty = 1; //# 97: continued |
503 bad.instanceSetBadStart = 1; /// 98: continued | 503 bad.instanceSetBadStart = 1; //# 98: continued |
504 bad.instanceSetBadEnd = 1; /// 99: continued | 504 bad.instanceSetBadEnd = 1; //# 99: continued |
505 bad.instanceSetBadMiddle = 1; /// 100: continued | 505 bad.instanceSetBadMiddle = 1; //# 100: continued |
506 bad * bad; /// 101: continued | 506 bad * bad; //# 101: continued |
507 bad * bad; /// 102: continued | 507 bad * bad; //# 102: continued |
508 bad * bad; /// 103: continued | 508 bad * bad; //# 103: continued |
509 bad[1] = 1; /// 104: continued | 509 bad[1] = 1; //# 104: continued |
510 bad[1] = 1; /// 105: continued | 510 bad[1] = 1; //# 105: continued |
511 bad[1] = 1; /// 106: continued | 511 bad[1] = 1; //# 106: continued |
512 bad[1] = 1; /// 107: continued | 512 bad[1] = 1; //# 107: continued |
513 | 513 |
514 // This covers tests 108-166 | 514 // This covers tests 108-166 |
515 bad.method(); | 515 bad.method(); |
516 | 516 |
517 bad.f(() {}); /// 167: compile-time error | 517 bad.f(() {}); //# 167: compile-time error |
518 bad.f(() {}); /// 168: compile-time error | 518 bad.f(() {}); //# 168: compile-time error |
519 bad.f(() {}); /// 169: compile-time error | 519 bad.f(() {}); //# 169: compile-time error |
520 bad.f(() {}); /// 170: compile-time error | 520 bad.f(() {}); //# 170: compile-time error |
521 bad.f(() {}); /// 171: compile-time error | 521 bad.f(() {}); //# 171: compile-time error |
522 bad.f(() {}); /// 172: compile-time error | 522 bad.f(() {}); //# 172: compile-time error |
523 bad.f(() {}); /// 173: compile-time error | 523 bad.f(() {}); //# 173: compile-time error |
524 bad.f(() {}); /// 174: compile-time error | 524 bad.f(() {}); //# 174: compile-time error |
525 bad.f(() {}); /// 175: compile-time error | 525 bad.f(() {}); //# 175: compile-time error |
526 bad.f(() {}); /// 176: compile-time error | 526 bad.f(() {}); //# 176: compile-time error |
527 bad.f(() {}); /// 177: compile-time error | 527 bad.f(() {}); //# 177: compile-time error |
528 bad.f(() {}); /// 178: compile-time error | 528 bad.f(() {}); //# 178: compile-time error |
529 bad.f(() {}); /// 179: compile-time error | 529 bad.f(() {}); //# 179: compile-time error |
530 bad.f(() {}); /// 180: compile-time error | 530 bad.f(() {}); //# 180: compile-time error |
531 bad.f(() {}); /// 181: compile-time error | 531 bad.f(() {}); //# 181: compile-time error |
532 bad.f(() {}); /// 182: compile-time error | 532 bad.f(() {}); //# 182: compile-time error |
533 bad.f(() {}); /// 183: compile-time error | 533 bad.f(() {}); //# 183: compile-time error |
534 bad.f(() {}); /// 184: compile-time error | 534 bad.f(() {}); //# 184: compile-time error |
535 bad.f(() {}); /// 185: compile-time error | 535 bad.f(() {}); //# 185: compile-time error |
536 bad.f(() {}); /// 186: compile-time error | 536 bad.f(() {}); //# 186: compile-time error |
537 bad.f(() {}); /// 187: compile-time error | 537 bad.f(() {}); //# 187: compile-time error |
538 bad.f(() {}); /// 188: compile-time error | 538 bad.f(() {}); //# 188: compile-time error |
539 | 539 |
540 BadEmpty x; /// 189: compile-time error | 540 BadEmpty x; //# 189: compile-time error |
541 BadStart x; /// 190: compile-time error | 541 BadStart x; //# 190: compile-time error |
542 BadEnd x; /// 191: compile-time error | 542 BadEnd x; //# 191: compile-time error |
543 BadMiddle x; /// 192: compile-time error | 543 BadMiddle x; //# 192: compile-time error |
544 BadPosEmpty x; /// 193: compile-time error | 544 BadPosEmpty x; //# 193: compile-time error |
545 BadPosEmpty x; /// 194: compile-time error | 545 BadPosEmpty x; //# 194: compile-time error |
546 BadPosEmpty x; /// 195: compile-time error | 546 BadPosEmpty x; //# 195: compile-time error |
547 BadPosEmpty x; /// 196: compile-time error | 547 BadPosEmpty x; //# 196: compile-time error |
548 BadPosStart x; /// 197: compile-time error | 548 BadPosStart x; //# 197: compile-time error |
549 BadPosStart x; /// 198: compile-time error | 549 BadPosStart x; //# 198: compile-time error |
550 BadPosEnd x; /// 199: compile-time error | 550 BadPosEnd x; //# 199: compile-time error |
551 BadPosStart x; /// 200: compile-time error | 551 BadPosStart x; //# 200: compile-time error |
552 BadPosMiddle x; /// 201: compile-time error | 552 BadPosMiddle x; //# 201: compile-time error |
553 BadNamEmpty x; /// 202: compile-time error | 553 BadNamEmpty x; //# 202: compile-time error |
554 BadNamEmpty x; /// 203: compile-time error | 554 BadNamEmpty x; //# 203: compile-time error |
555 BadNamEmpty x; /// 204: compile-time error | 555 BadNamEmpty x; //# 204: compile-time error |
556 BadNamEmpty x; /// 205: compile-time error | 556 BadNamEmpty x; //# 205: compile-time error |
557 BadNamStart x; /// 206: compile-time error | 557 BadNamStart x; //# 206: compile-time error |
558 BadNamStart x; /// 207: compile-time error | 558 BadNamStart x; //# 207: compile-time error |
559 BadNamEnd x; /// 208: compile-time error | 559 BadNamEnd x; //# 208: compile-time error |
560 BadNamStart x; /// 209: compile-time error | 560 BadNamStart x; //# 209: compile-time error |
561 BadNamMiddle x; /// 210: compile-time error | 561 BadNamMiddle x; //# 210: compile-time error |
562 } | 562 } |
OLD | NEW |