blob: 0c6a5a144ed709b0656eff55416bca6c2ce65870 [file] [log] [blame]
// 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.
// SharedOptions=--enable-experiment=generic-metadata
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);