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

Side by Side Diff: tests/compiler/dart2js_native/native_class_inheritance4_frog_test.dart

Issue 13973017: Revert "Revert "Allow multiple tags in native clause."" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 7 years, 8 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 6
7 // Additional Dart code may be 'placed on' hidden native classes. With 7 // Additional Dart code may be 'placed on' hidden native classes. With
8 // inheritance, the superclass method must not be reached by a call on the 8 // inheritance, the superclass method must not be reached by a call on the
9 // subclass. 9 // subclass.
10 10
11 class A native "*A" { 11 class A native "A" {
12 var _field; 12 var _field;
13 13
14 int get X => _field; 14 int get X => _field;
15 void set X(int x) { _field = x; } 15 void set X(int x) { _field = x; }
16 16
17 int method(int z) => _field + z; 17 int method(int z) => _field + z;
18 } 18 }
19 19
20 class B extends A native "*B" { 20 class B extends A native "B" {
21 var _field2; 21 var _field2;
22 22
23 int get X => _field2; 23 int get X => _field2;
24 void set X(int x) { _field2 = x; } 24 void set X(int x) { _field2 = x; }
25 25
26 int method(int z) => _field2 + z; 26 int method(int z) => _field2 + z;
27 } 27 }
28 28
29 A makeA() native { return new A(); } 29 A makeA() native { return new A(); }
30 B makeB() native { return new B(); } 30 B makeB() native { return new B(); }
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 } 138 }
139 139
140 main() { 140 main() {
141 testBasicA_dynamic(); 141 testBasicA_dynamic();
142 testBasicA_typed(); 142 testBasicA_typed();
143 testBasicB_dynamic(); 143 testBasicB_dynamic();
144 testBasicB_typed(); 144 testBasicB_typed();
145 testAB_dynamic(); 145 testAB_dynamic();
146 testAB_typed(); 146 testAB_typed();
147 } 147 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698