blob: ecfc855f9723fbf84f76e9b53a8d29abb6f6ff48 [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 A mixin application of the form S with M1,...,Mk; defines a class
* C whose superclass is the application of the mixin composition
* Mk−1 ∗ ... ∗ M1 to S
* ...
* It is a compile-time error if M (respectively, any of M1,..., Mk) is
* an enumerated type or a malformed type.
* @description Checks that it is a compile-time error if extends mixin
* application where M is malformed type. Test type alias
* @compile-error
* @author sgrekhov@unipro.ru
*/
// SharedOptions=--enable-experiment=nonfunction-type-aliases
class S {
}
typedef SAlias = S;
var M;
class C extends SAlias with M {
}
main() {
new C();
}