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 interface and the name of the native class. | 5 // 'I' is the name of an interface 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 | 10 |
11 interface I { | 11 abstract class I { |
12 I read(); | 12 I read(); |
13 write(I x); | 13 write(I x); |
14 } | 14 } |
15 | 15 |
16 makeI() native { new Impl(); } // Hint Impl is created by makeI. | 16 makeI() native { new Impl(); } // Hint Impl is created by makeI. |
OLD | NEW |