| 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 const x = | 5 const x = |
| 6 throw /// 01: compile-time error | 6 throw // /// 01: compile-time error |
| 7 "x"; | 7 "x"; |
| 8 | 8 |
| 9 const y = const {0: | 9 const y = const {0: |
| 10 throw /// 02: compile-time error | 10 throw // /// 02: compile-time error |
| 11 "y"}; | 11 "y"}; |
| 12 | 12 |
| 13 main() { | 13 main() { |
| 14 print(x); | 14 print(x); |
| 15 print(y); | 15 print(y); |
| 16 const z = | 16 const z = |
| 17 throw /// 03: compile-time error | 17 throw // /// 03: compile-time error |
| 18 1+1+1; | 18 1+1+1; |
| 19 print(z); | 19 print(z); |
| 20 } | 20 } |
| OLD | NEW |