| Index: dart/tests/compiler/dart2js_foreign/native_class_inheritance2_test.dart
|
| diff --git a/dart/tests/compiler/dart2js_foreign/native_class_inheritance2_test.dart b/dart/tests/compiler/dart2js_foreign/native_class_inheritance2_test.dart
|
| index 9dec57b5c81cf057dc130fd3f082e75cb1314b24..00f3a3636cb38b40cc933744c1b2b3be70b4dfe5 100644
|
| --- a/dart/tests/compiler/dart2js_foreign/native_class_inheritance2_test.dart
|
| +++ b/dart/tests/compiler/dart2js_foreign/native_class_inheritance2_test.dart
|
| @@ -7,26 +7,30 @@
|
| // superclass caches the method in the prototype, so shadowing the dispatcher
|
| // stored on Object.prototype.
|
|
|
| -class A native "*A" {
|
| - foo([a=100]) native;
|
| +@native("*A")
|
| +class A {
|
| + @native foo([a=100]);
|
| }
|
|
|
| -class B extends A native "*B" {
|
| +@native("*B")
|
| +class B extends A {
|
| }
|
|
|
| -class C extends B native "*C" {
|
| - foo([z=300]) native;
|
| +@native("*C")
|
| +class C extends B {
|
| + @native foo([z=300]);
|
| }
|
|
|
| -class D extends C native "*D" {
|
| +@native("*D")
|
| +class D extends C {
|
| }
|
|
|
| -makeA() native;
|
| -makeB() native;
|
| -makeC() native;
|
| -makeD() native;
|
| +@native makeA();
|
| +@native makeB();
|
| +@native makeC();
|
| +@native makeD();
|
|
|
| -void setup() native """
|
| +@native("""
|
| // This code is all inside 'setup' and so not accesible from the global scope.
|
| function inherits(child, parent) {
|
| if (child.prototype.__proto__) {
|
| @@ -54,7 +58,8 @@ makeA = function(){return new A};
|
| makeB = function(){return new B};
|
| makeC = function(){return new C};
|
| makeD = function(){return new D};
|
| -""";
|
| +""")
|
| +void setup();
|
|
|
|
|
| main() {
|
|
|