blob: 6e74a6cf1d4a59e086dd21d1e8476f9cfe737e60 [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 generic type alias is a declaration [D] of one of the following
/// forms:
/// m typedef id<X1extendsB1, ..., Xs extendsBs> = T;
/// ...
/// where [m] is derived from metadata, [T] is a type, and [S?] is a type or the
/// empty string.
/// @description Checks that construction [class test<X extends num> = A<X>]
/// throws compile time error
/// @compile-error
/// @Issue 36946
/// @author iarkh@unipro.ru
class A<X> {}
class test<X extends num> = A<X>;
main() {}