blob: fea8530f5cf9669f6973936fc955510943ff9e76 [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 Invoking an abstract method, getter or setter results in an
* invocation of noSuchMethod exactly as if the declaration did not exist,
* unless a suitable member a is available in a superclass, in which case a is
* invoked.
* @description Checks that invoking an abstract method, getter or setter
* results in a compile error.
* @author kaigorodov, sgrekhov@unipro.ru
*/
class C {
// ^
// [cfe] The non-abstract class 'C' is missing implementations for these members:
void m();
//^^^^^^^^^
// [analyzer] COMPILE_TIME_ERROR.CONCRETE_CLASS_WITH_ABSTRACT_MEMBER
int get g;
//^^^^^^^^^^
// [analyzer] COMPILE_TIME_ERROR.CONCRETE_CLASS_WITH_ABSTRACT_MEMBER
set g(int v);
//^^^^^^^^^^^^^
// [analyzer] COMPILE_TIME_ERROR.CONCRETE_CLASS_WITH_ABSTRACT_MEMBER
}
main() {
new C();
}