blob: 8a0f437644bc3847d70dd4f2c4d80264f7e72ba7 [file] [log] [blame]
/*
* Copyright (c) 2019, 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 It is a compile error to derive a mixin from a class which has a
* superclass other than Object.
* @description Checks that it is a compile error to derive a mixin from a class
* which has a superclass other than Object.
* @issue 26409
* @issue 42254
* @author sgrekhov@unipro.ru
*/
// SharedOptions=--enable-experiment=nonfunction-type-aliases
class Sstatic {
}
class M extends Sstatic {
}
class SuperA extends Sstatic {
}
typedef AliasA = SuperA;
typedef AliasM = M;
class A = AliasA with AliasM;
// ^^^^^^
// [analyzer] unspecified
// [cfe] unspecified
main() {
new A();
}