blob: 1c52adb42982067a68235cb3a46ef35c2196a8de [file] [log] [blame]
// Copyright (c) 2017, 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.
typedef Foo<S> = S Function<T>(T x);
int foo<T>(T x) => 3;
Foo<int> bar() => foo;
void test1() {
bar()<String>("hello");
}
class A {
Foo<int> f = throw '';
void test() {
f<String>("hello");
}
}
main() {}