| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // SharedOptions=--enable-enum | |
| 6 | |
| 7 import 'package:expect/expect.dart'; | 5 import 'package:expect/expect.dart'; |
| 8 | 6 |
| 9 enum Enum1 { _ } | 7 enum Enum1 { _ } |
| 10 enum Enum2 { A } | 8 enum Enum2 { A } |
| 11 enum Enum3 { B, C } | 9 enum Enum3 { B, C } |
| 12 enum Enum4 { D, E, } | 10 enum Enum4 { D, E, } |
| 13 enum Enum5 { F, G, H } | 11 enum Enum5 { F, G, H } |
| 14 enum _Enum6 { I, _J } | 12 enum _Enum6 { I, _J } |
| 15 | 13 |
| 16 main() { | 14 main() { |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 index = 2; | 103 index = 2; |
| 106 break; | 104 break; |
| 107 case Enum5.F: | 105 case Enum5.F: |
| 108 index = 0; | 106 index = 0; |
| 109 break; | 107 break; |
| 110 case Enum5.G: | 108 case Enum5.G: |
| 111 index = 1; | 109 index = 1; |
| 112 break; | 110 break; |
| 113 } | 111 } |
| 114 Expect.equals(e.index, index); | 112 Expect.equals(e.index, index); |
| 115 } | 113 } |
| OLD | NEW |