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 import 'package:expect/expect.dart'; | 5 import 'package:expect/expect.dart'; |
6 import 'multiline_newline_cr.dart' as cr; | 6 import 'multiline_newline_cr.dart' as cr; |
7 import 'multiline_newline_crlf.dart' as crlf; | 7 import 'multiline_newline_crlf.dart' as crlf; |
8 import 'multiline_newline_lf.dart' as lf; | 8 import 'multiline_newline_lf.dart' as lf; |
9 | 9 |
10 main() { | 10 main() { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 crlf.constantMultilineString != lf.constantMultilineString ? true : null; | 47 crlf.constantMultilineString != lf.constantMultilineString ? true : null; |
48 const c9 = | 48 const c9 = |
49 lf.constantMultilineString != cr.constantMultilineString ? true : null; | 49 lf.constantMultilineString != cr.constantMultilineString ? true : null; |
50 Expect.isNull(c7); | 50 Expect.isNull(c7); |
51 Expect.isNull(c8); | 51 Expect.isNull(c8); |
52 Expect.isNull(c9); | 52 Expect.isNull(c9); |
53 | 53 |
54 const c10 = c7 ? 1 : 2; // //# 04: compile-time error | 54 const c10 = c7 ? 1 : 2; // //# 04: compile-time error |
55 const c11 = c8 ? 2 : 3; // //# 05: compile-time error | 55 const c11 = c8 ? 2 : 3; // //# 05: compile-time error |
56 const c12 = c9 ? 3 : 4; // //# 06: compile-time error | 56 const c12 = c9 ? 3 : 4; // //# 06: compile-time error |
57 } | 57 } |
OLD | NEW |