| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 // All things regarding compile time constant expressions. | 4 // All things regarding compile time constant expressions. |
| 5 | 5 |
| 6 import "package:expect/expect.dart"; |
| 7 |
| 6 abstract class Roman { | 8 abstract class Roman { |
| 7 static const I = 1; | 9 static const I = 1; |
| 8 static const II = 2; | 10 static const II = 2; |
| 9 static const III = 3; | 11 static const III = 3; |
| 10 static const IV = 4; | 12 static const IV = 4; |
| 11 static const V = 5; | 13 static const V = 5; |
| 12 | 14 |
| 13 static const VivaItalia = const {"green": 1, "red": 3, "white": 2}; | 15 static const VivaItalia = const {"green": 1, "red": 3, "white": 2}; |
| 14 } | 16 } |
| 15 | 17 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 Expect.equals(true, caughtException); | 116 Expect.equals(true, caughtException); |
| 115 Expect.equals(1, c11dItaly["green"]); | 117 Expect.equals(1, c11dItaly["green"]); |
| 116 | 118 |
| 117 Expect.equals(true, null == naught); | 119 Expect.equals(true, null == naught); |
| 118 } | 120 } |
| 119 } | 121 } |
| 120 | 122 |
| 121 main() { | 123 main() { |
| 122 CTConstTest.testMain(); | 124 CTConstTest.testMain(); |
| 123 } | 125 } |
| OLD | NEW |