| 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 // Test that we report a compile-time error when a type parameter conflicts | 5 // Test that we report a compile-time error when a type parameter conflicts |
| 6 // with an instance or static member with the same name. | 6 // with an instance or static member with the same name. |
| 7 | 7 |
| 8 import "package:expect/expect.dart"; | 8 import "package:expect/expect.dart"; |
| 9 | 9 |
| 10 class G1<T> { | 10 class G1<T> { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 } | 32 } |
| 33 | 33 |
| 34 main() { | 34 main() { |
| 35 new G1<int>(); | 35 new G1<int>(); |
| 36 new G2<int>(); | 36 new G2<int>(); |
| 37 new G3<int>(); | 37 new G3<int>(); |
| 38 new G4<int>(); | 38 new G4<int>(); |
| 39 new G5<int>(); | 39 new G5<int>(); |
| 40 new G6<int>(); | 40 new G6<int>(); |
| 41 } | 41 } |
| OLD | NEW |