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

Side by Side Diff: tests/language_strong/override_inheritance_field_test.dart

Issue 2571363002: fixes #27385, implement virtual fields in DDC (Closed)
Patch Set: format Created 4 years 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 import "package:meta/meta.dart" show virtual;
6
5 class A { 7 class A {
6 get getter1 => null; /// 01: ok 8 get getter1 => null; /// 01: ok
7 num get getter2 => null; /// 02: ok 9 num get getter2 => null; /// 02: ok
8 num get getter3 => null; /// 03: ok 10 num get getter3 => null; /// 03: ok
9 int get getter4 => null; /// 04: ok 11 int get getter4 => null; /// 04: ok
10 int get getter5 => null; /// 05: static type warning 12 int get getter5 => null; /// 05: static type warning
11 int get getter6 => null; /// 06: ok 13 int get getter6 => null; /// 06: ok
12 int get getter7 => null; /// 07: static type warning 14 int get getter7 => null; /// 07: static type warning
13 int get getter8 => null; /// 08: static type warning 15 int get getter8 => null; /// 08: static type warning
14 16
15 set setter1(_) => null; /// 21: ok 17 set setter1(_) => null; /// 21: ok
16 void set setter2(_) {} /// 22: ok 18 void set setter2(_) {} /// 22: ok
17 set setter3(_) => null; /// 23: ok 19 set setter3(_) => null; /// 23: ok
18 set setter4(_) => null; /// 24: ok 20 set setter4(_) => null; /// 24: ok
19 set setter5(num _) => null; /// 25: ok 21 set setter5(num _) => null; /// 25: ok
20 set setter6(num _) => null; /// 26: ok 22 set setter6(num _) => null; /// 26: ok
21 set setter7(int _) => null; /// 27: ok 23 set setter7(int _) => null; /// 27: ok
22 set setter8(int _) => null; /// 28: static type warning 24 set setter8(int _) => null; /// 28: static type warning
23 set setter9(int _) => null; /// 29: ok 25 set setter9(int _) => null; /// 29: ok
24 set setter10(int _) => null; /// 30: static type warning 26 set setter10(int _) => null; /// 30: static type warning
25 set setter11(int _) => null; /// 31: static type warning 27 set setter11(int _) => null; /// 31: static type warning
26 28
27 int field1; /// 41: ok 29 @virtual int field1; /// 41: ok
28 num field2; /// 42: ok 30 num field2; /// 42: ok
29 int field3; /// 43: ok 31 int field3; /// 43: ok
30 int field4; /// 44: static type warning 32 int field4; /// 44: static type warning
31 int field5; /// 45: ok 33 int field5; /// 45: ok
32 num field6; /// 46: ok 34 @virtual num field6; /// 46: ok
33 num field7; /// 47: static type warning 35 num field7; /// 47: static type warning
34 num get field8 => null; /// 48: static type warning 36 num get field8 => null; /// 48: static type warning
35 num field9; /// 49: ok 37 num field9; /// 49: ok
36 num field10; /// 50: ok 38 num field10; /// 50: ok
37 set field11(int _) {} /// 51: ok 39 set field11(int _) {} /// 51: ok
38 void set field12(int _) {} /// 52: ok 40 void set field12(int _) {} /// 52: ok
39 num field13; /// 53: static type warning 41 num field13; /// 53: static type warning
40 set field14(num _) {} /// 54: static type warning 42 set field14(num _) {} /// 54: static type warning
41 } 43 }
42 44
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 double get getter10 => null; /// 10: continued 116 double get getter10 => null; /// 10: continued
115 String get getter11 => null; /// 11: continued 117 String get getter11 => null; /// 11: continued
116 set setter13(double _) => null; /// 33: continued 118 set setter13(double _) => null; /// 33: continued
117 set setter13(double _) => null; /// 33a: continued 119 set setter13(double _) => null; /// 33a: continued
118 set setter14(String _) => null; /// 34: continued 120 set setter14(String _) => null; /// 34: continued
119 } 121 }
120 122
121 main() { 123 main() {
122 new SubClass(); 124 new SubClass();
123 } 125 }
OLDNEW
« no previous file with comments | « tests/language_strong/getters_setters_test.dart ('k') | tests/language_strong/setter_override2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698