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 | 4 |
5 import "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; |
6 | 6 |
7 // Map takes 2 type arguments. | 7 // Map takes 2 type arguments. |
8 Map | 8 Map |
9 <String> /// 00: static type warning | 9 <String> //# 00: static type warning |
10 foo; | 10 foo; |
11 Map | 11 Map |
12 <String> /// 02: static type warning | 12 <String> //# 02: static type warning |
13 baz; | 13 baz; |
14 | 14 |
15 main() { | 15 main() { |
16 foo = null; | 16 foo = null; |
17 var bar = new Map | 17 var bar = new Map |
18 <String> /// 01: static type warning | 18 <String> //# 01: static type warning |
19 (); | 19 (); |
20 baz = new Map(); /// 02: continued | 20 baz = new Map(); //# 02: continued |
21 } | 21 } |
OLD | NEW |