blob: 65b7ee7b70030d6076b527e8f45faa5261151043 [file] [edit]
// 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 An abstract method (respectively, abstract getter or abstract
/// setter) is an instance method, getter or setter that is not declared
/// external and does not provide an implementation.
///
/// @description Checks that instance method, getter or setter can not be
/// declared without providing an implementation.
/// @author kaigorodov
class C {
// ^
// [cfe] unspecified
void m();
//^^^^^^^^^
// [analyzer] unspecified
int get g;
//^^^^^^^^^^
// [analyzer] unspecified
set g(int v);
//^^^^^^^^^^^^^
// [analyzer] unspecified
}
main() {
print(C);
}