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

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

Issue 10894048: Revert change 11558 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 var get; 5 var get;
6 var get a; /// 00: compile-time error 6 var get a; /// 00: compile-time error
7 var get b, c; /// 01: compile-time error 7 var get b, c; /// 01: compile-time error
8 8
9 var set; 9 var set;
10 var set d; /// 02: compile-time error 10 var set d; /// 02: compile-time error
11 var set e, f; /// 03: compile-time error 11 var set e, f; /// 03: compile-time error
12 12
13 class C0 { 13 class C0 {
14 var get; 14 var get;
15 var get a; /// 04: compile-time error 15 var get a; /// 04: compile-time error
16 var get b, c; /// 05: compile-time error 16 var get b, c; /// 05: compile-time error
17 17
18 var set; 18 var set;
19 var set d; /// 06: compile-time error 19 var set d; /// 06: compile-time error
20 var set e, f; /// 07: compile-time error 20 var set e, f; /// 07: compile-time error
21 } 21 }
22 22
23 class C1 { 23 class C1 {
24 List get; 24 List get;
25 List get a; 25 List get a; /// 08: compile-time error
26 abstract List get a2;
27 abstract List get a3 => null; /// 08: compile-time error
28 List get b, c; /// 09: compile-time error 26 List get b, c; /// 09: compile-time error
29 27
30 List set; 28 List set;
31 List set d; /// 10: compile-time error 29 List set d; /// 10: compile-time error
32 List set e, f; /// 11: compile-time error 30 List set e, f; /// 11: compile-time error
33 } 31 }
34 32
35 class C2 { 33 class C2 {
36 List<int> get; 34 List<int> get;
37 List<int> get a; 35 List<int> get a; /// 12: compile-time error
38 abstract List<int> get a2;
39 abstract List<int> get a3 => null; /// 08: compile-time error
40 List<int> get b, c; /// 13: compile-time error 36 List<int> get b, c; /// 13: compile-time error
41 37
42 List<int> set; 38 List<int> set;
43 List<int> set d; /// 14: compile-time error 39 List<int> set d; /// 14: compile-time error
44 List<int> set e, f; /// 15: compile-time error 40 List<int> set e, f; /// 15: compile-time error
45 } 41 }
46 42
47 main() { 43 main() {
48 new C1(); /// 16: compile-time error 44 new C0();
45 new C1();
46 new C2();
49 } 47 }
OLDNEW
« no previous file with comments | « tests/language/empty_body_member_negative_test.dart ('k') | tests/language/implicit_this_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698