Index: tests/compiler/dart2js_native/native_class_inheritance4_frog_test.dart |
diff --git a/tests/compiler/dart2js_native/native_class_inheritance4_frog_test.dart b/tests/compiler/dart2js_native/native_class_inheritance4_frog_test.dart |
index b243c59e39b411ac8dcfc6453d9afab454ae835c..fcd1e3aa05aa08c62eac978d3317b3c13940b556 100644 |
--- a/tests/compiler/dart2js_native/native_class_inheritance4_frog_test.dart |
+++ b/tests/compiler/dart2js_native/native_class_inheritance4_frog_test.dart |
@@ -2,13 +2,15 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
+import "dart:_js_helper"; |
import "package:expect/expect.dart"; |
// Additional Dart code may be 'placed on' hidden native classes. With |
// inheritance, the superclass method must not be reached by a call on the |
// subclass. |
-class A native "A" { |
+@Native("A") |
+class A { |
var _field; |
int get X => _field; |
@@ -17,7 +19,8 @@ class A native "A" { |
int method(int z) => _field + z; |
} |
-class B extends A native "B" { |
+@Native("B") |
+class B extends A { |
var _field2; |
int get X => _field2; |