Index: pkg/analyzer/test/generated/declaration_resolver_test.dart |
diff --git a/pkg/analyzer/test/generated/declaration_resolver_test.dart b/pkg/analyzer/test/generated/declaration_resolver_test.dart |
index a78bc315e34a245487633df32c801939e3a842de..2a034bc5d3f540b0c327e3346a2294ad0c7f9d2f 100644 |
--- a/pkg/analyzer/test/generated/declaration_resolver_test.dart |
+++ b/pkg/analyzer/test/generated/declaration_resolver_test.dart |
@@ -534,6 +534,36 @@ main(List<String> items) { |
// no other validations than built into DeclarationResolver |
} |
+ test_visitGenericTypeAlias_0() async { |
+ String code = r''' |
+typedef F<T> = Function<S>(List<S> list, Function<A>(A), T); |
+'''; |
+ CompilationUnit unit = await resolveSource(code); |
+ // re-resolve |
+ _cloneResolveUnit(unit); |
+ // no other validations than built into DeclarationResolver |
+ } |
+ |
+ test_visitGenericTypeAlias_1() async { |
+ String code = r''' |
+typedef F = Function({int}); |
+'''; |
+ CompilationUnit unit = await resolveSource(code); |
+ // re-resolve |
+ _cloneResolveUnit(unit); |
+ // no other validations than built into DeclarationResolver |
+ } |
+ |
+ test_visitGenericTypeAlias_2() async { |
+ String code = r''' |
+typedef F = int; |
+'''; |
+ CompilationUnit unit = await resolveSource(code); |
+ // re-resolve |
+ _cloneResolveUnit(unit); |
+ // no other validations than built into DeclarationResolver |
+ } |
+ |
test_visitImportDirective_notExistingSource() async { |
String code = r''' |
import 'foo.dart'; |