blob: 8bcd93553200a9691263b8039f240cffe3d8d33a [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 The superinitializer that appears, explicitly or implicitly,
/// in the initializer list of a constant constructor must specify a constant
/// constructor of the superclass of the immediately enclosing class or a
/// compile-time error occurs.
/// @description Checks that there is no compile error if an implicit
/// superinitializer call is a call of a constant constructor. Test type aliases
/// @author sgrekhov@unipro.ru
class C {
const C();
}
typedef CAlias = C;
class A extends CAlias {
final CAlias c = const CAlias();
const A();
}
main() {
const A();
}