blob: 9c087916bb6ef83c34d796a394fc090bd0044c52 [file] [log] [blame]
// Copyright (c) 2018, 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.
// @dart = 2.9
/// @description Regression test for the issue 33625 (No error when run dart
/// class with incorrect instantiation to bound for functions). Checks that
/// [typedef F<X> = X Function();
/// typedef G<X extends F> = X Function();]
/// throw error because parameter bound type is not instantiated.
/// @author iarkh@unipro.ru
typedef F<X> = X Function();
typedef G<X extends F> = X Function();
main() {}