OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 library compiler_annotations; | 5 // Regression test for the combined use of metatargets and library tags. |
6 | 6 |
7 // This library contains annotations useful for testing. | 7 library annotations; |
8 | 8 |
9 // TODO(ngeoffray): Implement in dart2js. | 9 class UsedOnlyOnLibrary { |
10 class DontInline { | 10 const UsedOnlyOnLibrary(); |
11 const DontInline(); | |
12 } | 11 } |
| 12 const usedOnlyOnLibrary = const UsedOnlyOnLibrary(); |
| 13 |
| 14 class Reflectable { |
| 15 const Reflectable(); |
| 16 } |
| 17 const Reflectable reflectable = const Reflectable(); |
OLD | NEW |