| OLD | NEW |
| 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 // 'I' is the name of an abstract class and the name of the native class. | 5 // 'I' is the name of an abstract class and the name of the native class. |
| 6 | 6 |
| 7 library native_library_same_name_used_lib1; | 7 library native_library_same_name_used_lib1; |
| 8 | 8 |
| 9 import 'native_library_same_name_used_lib2.dart'; | 9 import 'native_library_same_name_used_lib2.dart'; |
| 10 import 'dart:_foreign_helper' show JS; |
| 10 | 11 |
| 11 abstract class I { | 12 abstract class I { |
| 12 I read(); | 13 I read(); |
| 13 write(I x); | 14 write(I x); |
| 14 } | 15 } |
| 15 | 16 |
| 16 makeI() native { new Impl(); } // Hint Impl is created by makeI. | 17 makeI() => JS('creates:Impl; returns:I;', 'makeI()'); |
| OLD | NEW |