blob: 3cfdff972bee8bee24a72d3be58fc8628b781246 [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 33626 (Dart does not throw error
/// when analyzer fails with "type_argument_not_matching_bounds" error for
/// functions)
/// @Issue 33626
/// @author iarkh@unipro.ru
class A {}
typedef F<X extends A> = X Function();
class B {}
B tryme() {}
main() {
F<B> f = tryme;
// ^
// [analyzer] unspecified
// [cfe] unspecified
}