| /* |
| * 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 static warning if a setter declares a return type other than void. |
| * @description Checks that a static warning is produced if a setter declares |
| * int as its return type. |
| * @static-warning |
| * @author vasya |
| * @reviewer iefremov |
| * @reviewer rodionov |
| */ |
| |
| class C { |
| int set foo(var x) { /// static type warning |
| } |
| } |
| |
| main() { |
| new C().foo = 1; |
| } |