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

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

Issue 2765693002: Update all tests (Closed)
Patch Set: Created 3 years, 9 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 4
5 foo(x 5 foo(x
6 , static int y /// 01: compile-time error 6 , static int y //# 01: compile-time error
7 , final static y /// 02: compile-time error 7 , final static y //# 02: compile-time error
8 , {static y} /// 03: compile-time error 8 , {static y} //# 03: compile-time error
9 , [static y] /// 04: compile-time error 9 , [static y] //# 04: compile-time error
10 ) { 10 ) {
11 } 11 }
12 12
13 class C { 13 class C {
14 bar(x 14 bar(x
15 , static int y /// 05: compile-time error 15 , static int y //# 05: compile-time error
16 , final static y /// 06: compile-time error 16 , final static y //# 06: compile-time error
17 , {static y} /// 07: compile-time error 17 , {static y} //# 07: compile-time error
18 , [static y] /// 08: compile-time error 18 , [static y] //# 08: compile-time error
19 ) { 19 ) {
20 } 20 }
21 21
22 static baz(x 22 static baz(x
23 , static int y /// 09: compile-time error 23 , static int y //# 09: compile-time error
24 , final static y /// 10: compile-time error 24 , final static y //# 10: compile-time error
25 , {static y} /// 11: compile-time error 25 , {static y} //# 11: compile-time error
26 , [static y] /// 12: compile-time error 26 , [static y] //# 12: compile-time error
27 ) { 27 ) {
28 } 28 }
29 } 29 }
30 30
31 main() { 31 main() {
32 foo(1 32 foo(1
33 , 1 /// 01: continued 33 , 1 //# 01: continued
34 , 1 /// 02: continued 34 , 1 //# 02: continued
35 , y: 1 /// 03: continued 35 , y: 1 //# 03: continued
36 , 1 /// 04: continued 36 , 1 //# 04: continued
37 ); 37 );
38 new C().bar(1 38 new C().bar(1
39 , 1 /// 05: continued 39 , 1 //# 05: continued
40 , 1 /// 06: continued 40 , 1 //# 06: continued
41 , y: 1 /// 07: continued 41 , y: 1 //# 07: continued
42 , 1 /// 08: continued 42 , 1 //# 08: continued
43 ); 43 );
44 C.baz(1 44 C.baz(1
45 , 1 /// 09: continued 45 , 1 //# 09: continued
46 , 1 /// 10: continued 46 , 1 //# 10: continued
47 , y: 1 /// 11: continued 47 , y: 1 //# 11: continued
48 , 1 /// 12: continued 48 , 1 //# 12: continued
49 ); 49 );
50 } 50 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698