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 0f5557f3858fdba04c28adab361cecdb2960b91c..e89057b3cc1f84e63c1a64815aeda7187c6fac26 100644 |
--- a/pkg/analyzer/test/generated/non_error_resolver_test.dart |
+++ b/pkg/analyzer/test/generated/non_error_resolver_test.dart |
@@ -2158,6 +2158,27 @@ class B extends A implements Function { |
verify([source]); |
} |
+ test_genericTypeAlias_fieldAndReturnType() async { |
+ Source source = addSource(r''' |
+typedef Foo = int 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); |