OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 // Script which exits with code 42. | 5 library enum_duplicate_lib; |
6 | 6 |
7 import 'dart:io'; | 7 enum Enum1 { |
| 8 A, |
| 9 B, |
| 10 } |
8 | 11 |
9 void main() { | 12 class Enum2 { |
10 exitCode = 42; | 13 static Iterable get values => ['Enum2.A', 'Enum2.B']; |
11 } | 14 } |
OLD | NEW |