blob: 76b462ceeafc8d063c603d053bc0edeb082e2453 [file] [log] [blame]
// 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
/// setterSignature:
/// returnType? set identifier formalParameterList
/// ;
/// @description Checks if static setter returns value other than void, then
/// a compile error occurs
/// @author sgrekhov@unipro.ru
/// @issue 42179
class C {
static int set s2(int value) => 42;
// ^^^
// [analyzer] unspecified
// [cfe] unspecified
}
main() {
C.s2 = 0;
}