| Index: pkg/analyzer/test/generated/non_error_resolver_test.dart
|
| diff --git a/pkg/analyzer/test/generated/non_error_resolver_test.dart b/pkg/analyzer/test/generated/non_error_resolver_test.dart
|
| index e89057b3cc1f84e63c1a64815aeda7187c6fac26..e516d5d9e6566804a721d3f7c97e68b52e33dc24 100644
|
| --- a/pkg/analyzer/test/generated/non_error_resolver_test.dart
|
| +++ b/pkg/analyzer/test/generated/non_error_resolver_test.dart
|
| @@ -2158,7 +2158,7 @@ class B extends A implements Function {
|
| verify([source]);
|
| }
|
|
|
| - test_genericTypeAlias_fieldAndReturnType() async {
|
| + test_genericTypeAlias_fieldAndReturnType_noTypeParameters() async {
|
| Source source = addSource(r'''
|
| typedef Foo = int Function<T>(T x);
|
| int foo<T>(T x) => 3;
|
| @@ -2179,6 +2179,48 @@ class A {
|
| verify([source]);
|
| }
|
|
|
| + test_genericTypeAlias_fieldAndReturnType_typeParameters_arguments() async {
|
| + Source source = addSource(r'''
|
| +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;
|
| + void test() {
|
| + f<String>("hello");
|
| + }
|
| +}
|
| +''');
|
| + await computeAnalysisResult(source);
|
| + assertNoErrors(source);
|
| + verify([source]);
|
| + }
|
| +
|
| + test_genericTypeAlias_fieldAndReturnType_typeParameters_noArguments() async {
|
| + Source source = addSource(r'''
|
| +typedef Foo<S> = S Function<T>(T x);
|
| +int foo<T>(T x) => 3;
|
| +Foo bar() => foo;
|
| +void test1() {
|
| + bar()<String>("hello");
|
| +}
|
| +
|
| +class A {
|
| + Foo f;
|
| + void test() {
|
| + f<String>("hello");
|
| + }
|
| +}
|
| +''');
|
| + await computeAnalysisResult(source);
|
| + assertNoErrors(source);
|
| + verify([source]);
|
| + }
|
| +
|
| test_genericTypeAlias_noTypeParameters() async {
|
| Source source = addSource(r'''
|
| typedef Foo = int Function<T>(T x);
|
|
|