| OLD | NEW |
| 1 // Copyright (c) 2011, 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 // Dart test program testing the use of 'dynamic' in generic types. | 5 // Dart test program testing the use of 'dynamic' in generic types. |
| 6 // @static-clean | 6 // @static-clean |
| 7 | 7 |
| 8 interface Iface<K,V> { | 8 abstract class Iface<K,V> { |
| 9 } | 9 } |
| 10 | 10 |
| 11 class M1<K, V> implements Iface<K, V> { | 11 class M1<K, V> implements Iface<K, V> { |
| 12 } | 12 } |
| 13 | 13 |
| 14 class M2<K> implements Iface<K, dynamic> { | 14 class M2<K> implements Iface<K, dynamic> { |
| 15 } | 15 } |
| 16 | 16 |
| 17 class M3 implements Iface<String, dynamic> { | 17 class M3 implements Iface<String, dynamic> { |
| 18 } | 18 } |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 Expect.equals("dynamic", has_field.dynamic); | 54 Expect.equals("dynamic", has_field.dynamic); |
| 55 | 55 |
| 56 HasMethodDynamic has_method = new HasMethodDynamic(); | 56 HasMethodDynamic has_method = new HasMethodDynamic(); |
| 57 Expect.equals("dynamic", has_method.dynamic()); | 57 Expect.equals("dynamic", has_method.dynamic()); |
| 58 | 58 |
| 59 { | 59 { |
| 60 int dynamic = 0; // Local variable named dynamic is allowed. | 60 int dynamic = 0; // Local variable named dynamic is allowed. |
| 61 Expect.equals(0, dynamic); | 61 Expect.equals(0, dynamic); |
| 62 } | 62 } |
| 63 } | 63 } |
| OLD | NEW |