Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: tests/language/arg_param_trailing_comma_test.dart

Issue 2117293002: Allow VM precompiled to pass trailing-comma test. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tests/language/language.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 args, /// main_with_trailing
Lasse Reichstein Nielsen 2016/07/05 08:19:09 It's not an important test, mainly a curiosity, so
80 ) {
81 testCalls(); /// none: continued 79 testCalls(); /// none: continued
82 // Make sure the Bad class is checked. 80 // Make sure the Bad class is checked.
83 new Bad().method(); 81 new Bad().method();
84 } 82 }
85 83
86 void testCalls() { 84 void testCalls() {
87 // Check that all functions can be called normally 85 // Check that all functions can be called normally
88 topx(x); /// none: continued 86 topx(x); /// none: continued
89 topy(y); /// none: continued 87 topy(y); /// none: continued
90 topxy(x, y); /// none: continued 88 topxy(x, y); /// none: continued
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 typedef void BadPosMiddle([a,, b]); /// 201: compile-time error 392 typedef void BadPosMiddle([a,, b]); /// 201: compile-time error
395 typedef void BadNamEmpty({}); /// 202: compile-time error 393 typedef void BadNamEmpty({}); /// 202: compile-time error
396 typedef void BadNamEmpty(,{}); /// 203: compile-time error 394 typedef void BadNamEmpty(,{}); /// 203: compile-time error
397 typedef void BadNamEmpty({,}); /// 204: compile-time error 395 typedef void BadNamEmpty({,}); /// 204: compile-time error
398 typedef void BadNamEmpty({},); /// 205: compile-time error 396 typedef void BadNamEmpty({},); /// 205: compile-time error
399 typedef void BadNamStart(,{a}); /// 206: compile-time error 397 typedef void BadNamStart(,{a}); /// 206: compile-time error
400 typedef void BadNamStart({, a}); /// 207: compile-time error 398 typedef void BadNamStart({, a}); /// 207: compile-time error
401 typedef void BadNamEnd({a,,}); /// 208: compile-time error 399 typedef void BadNamEnd({a,,}); /// 208: compile-time error
402 typedef void BadNamStart({a},); /// 209: compile-time error 400 typedef void BadNamStart({a},); /// 209: compile-time error
403 typedef void BadNamMiddle({a,, b}); /// 210: compile-time error 401 typedef void BadNamMiddle({a,, b}); /// 210: compile-time error
OLDNEW
« no previous file with comments | « no previous file | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698