blob: 7299b1aac11c97d4da2d91bca9bcf1b90e8d6cf4 [file] [log] [blame]
/*
* Copyright (c) 2015, 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 The effect of a class definition of the form class C = M; or the
* form class C<T1,...,Tn> = M; in library L is to introduce the name C into
* the scope of L, bound to the class defined by the mixin application M.
* The name of the class is also set to C. Iff the class is prefixed by the
* built-in identifier abstract, the class being defined is an abstract class.
* @description Checks that compile error is issued, if class C declared without
* 'abstract' identifier does not implement all abstract methods.
* @compile-error
* @author sgrekhov@unipro.ru
*/
abstract class M {
int n();
}
abstract class S {
int m();
}
class C = S with M;
main() {
new C();
}