// Copyright (c) 2016, 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.

// @dart = 2.9

/// @assertion It is a compile-time error if an async, async* or sync* modifier
/// is attached to the body of a setter or constructor.
///
/// @description Checks that static setter with async modifier cause
/// compiler error.
///
/// @author a.semenov@unipro.ru

class A {
  static int _a;
  A() {}
  static set a(int value) async {
//                        ^
// [analyzer] unspecified
// [cfe] unspecified
    _a = value;
  }
}

main() {
  A.a = 10;
}
