// Copyright (c) 2021, 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. class A { const A(); } class B { const B(); } class C { const C(); } class D { const D(); } @A() // error @B() // error @C() // error @D() // error test() {} @A() // ok @A() // ok @B() // ok @B() // ok @C() // ok @C() // ok @C() // ok @D() // ok @D() // ok @D() // ok main() {}