blob: 95f16d1d2216ad4307cf7f0b40413a0b9d75996f [file] [log] [blame] [edit]
// Copyright (c) 2021, 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.
import "package:expect/expect.dart";
typedef TEST_TYPEDEF<TT extends T Function<T>(T)> =
void Function<TTT extends TT>();
void testme<TT extends T Function<T>(T)>() {}
main() {
Expect.isTrue(testme is TEST_TYPEDEF);
TEST_TYPEDEF ttttt = testme;
Expect.isTrue(ttttt is TEST_TYPEDEF);
}