OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 library malformed_test; | 5 library malformed_test; |
6 | 6 |
7 // This part includes the actual tests. | 7 // This part includes the actual tests. |
8 part 'malformed2_lib.dart'; /// 00: static type warning | 8 part 'malformed2_lib.dart'; /// 00: static type warning |
9 | 9 |
10 bool inCheckedMode() { | 10 bool inCheckedMode() { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 } | 50 } |
51 | 51 |
52 const Unresolved c1 = 0; /// 01: static type warning, compile-time error | 52 const Unresolved c1 = 0; /// 01: static type warning, compile-time error |
53 | 53 |
54 void main() { | 54 void main() { |
55 print(c1); /// 01: continued | 55 print(c1); /// 01: continued |
56 testValue(new List<String>()); /// 00: continued | 56 testValue(new List<String>()); /// 00: continued |
57 testValue(null); /// 00: continued | 57 testValue(null); /// 00: continued |
58 checkFailures(); | 58 checkFailures(); |
59 } | 59 } |
OLD | NEW |