blob: 25a47856eb7a0533bb35488987b18f2de6a7ca9d [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 Any use of a type [T] which is not well-bounded is a
/// compile-time error.
/// @description Checks that compile error is not thrown when non-function type
/// alias variable with well bounded type parameter is declared
/// @author iarkh@unipro.ru
// SharedOptions=--enable-experiment=nonfunction-type-aliases
class A<T> {}
typedef B<X> = A<X>;
main() {
B b1;
B<dynamic> b2;
B<Object?> b3;
B<Never> b4;
B<void> b5;
}