| /* |
| * Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| * for details. All rights reserved. Use of this source code is governed by a |
| * BSD-style license that can be found in the LICENSE file. |
| */ |
| /** |
| * @assertion It is a compile time error if a generic class declares a type |
| * variable with the same name as the class or any of its members or |
| * constructors. |
| * @description Checks that a type variable can not have the same name as |
| * the name of generic class static setter. |
| * @compile-error |
| * @author ilya |
| * @issue 14513 |
| */ |
| |
| class A<T> { |
| static set T(x) {} |
| } |
| |
| main() { |
| new A(); |
| } |