| 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; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(args | 78 main( |
| 79 , /// none: continued | 79 args, /// main_with_trailing |
| 80 ) { | 80 ) { |
| 81 testCalls(); /// none: continued | 81 testCalls(); /// none: continued |
| 82 // Make sure the Bad class is checked. | 82 // Make sure the Bad class is checked. |
| 83 new Bad().method(); | 83 new Bad().method(); |
| 84 } | 84 } |
| 85 | 85 |
| 86 void testCalls() { | 86 void testCalls() { |
| 87 // Check that all functions can be called normally | 87 // Check that all functions can be called normally |
| 88 topx(x); /// none: continued | 88 topx(x); /// none: continued |
| 89 topy(y); /// none: continued | 89 topy(y); /// none: continued |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 typedef void BadPosMiddle([a,, b]); /// 201: compile-time error | 394 typedef void BadPosMiddle([a,, b]); /// 201: compile-time error |
| 395 typedef void BadNamEmpty({}); /// 202: compile-time error | 395 typedef void BadNamEmpty({}); /// 202: compile-time error |
| 396 typedef void BadNamEmpty(,{}); /// 203: compile-time error | 396 typedef void BadNamEmpty(,{}); /// 203: compile-time error |
| 397 typedef void BadNamEmpty({,}); /// 204: compile-time error | 397 typedef void BadNamEmpty({,}); /// 204: compile-time error |
| 398 typedef void BadNamEmpty({},); /// 205: compile-time error | 398 typedef void BadNamEmpty({},); /// 205: compile-time error |
| 399 typedef void BadNamStart(,{a}); /// 206: compile-time error | 399 typedef void BadNamStart(,{a}); /// 206: compile-time error |
| 400 typedef void BadNamStart({, a}); /// 207: compile-time error | 400 typedef void BadNamStart({, a}); /// 207: compile-time error |
| 401 typedef void BadNamEnd({a,,}); /// 208: compile-time error | 401 typedef void BadNamEnd({a,,}); /// 208: compile-time error |
| 402 typedef void BadNamStart({a},); /// 209: compile-time error | 402 typedef void BadNamStart({a},); /// 209: compile-time error |
| 403 typedef void BadNamMiddle({a,, b}); /// 210: compile-time error | 403 typedef void BadNamMiddle({a,, b}); /// 210: compile-time error |
| OLD | NEW |