blob: f3c1fd48878999cca7406732c44c1562f15c7b02 [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.
T id<T>(T t) => t;
T Function<T>(T) alias = id;
class Class {
T call<T>(T t) => t;
method(int Function(int) f) {}
test() {
Class c = new Class();
int Function(int) f = alias;
int Function(int) g;
g = alias;
int Function(int) h = c;
g = c;
main() {