Index: tests/compiler/dart2js_native/downcast_test.dart |
diff --git a/tests/compiler/dart2js_native/downcast_test.dart b/tests/compiler/dart2js_native/downcast_test.dart |
index 27ec4b2394dc5fc1209e2ccca50f227d74cd4dce..6810a61286b7ff8a8ff5cee06a16bceb3344e7fe 100644 |
--- a/tests/compiler/dart2js_native/downcast_test.dart |
+++ b/tests/compiler/dart2js_native/downcast_test.dart |
@@ -4,6 +4,7 @@ |
// Test for downcasts on native classes. |
+import "dart:_js_helper"; |
import "package:expect/expect.dart"; |
abstract class J { |
@@ -16,13 +17,15 @@ abstract class I extends J { |
// Native implementation. |
-class A implements I native "A" { |
+@Native("A") |
+class A implements I { |
// The native class accepts only other native instances. |
A read() native; |
write(A x) native; |
} |
-class B extends A native "B" { |
+@Native("B") |
+class B extends A { |
} |
makeA() native; |