Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Unified Diff: pkg/analyzer/test/generated/declaration_resolver_test.dart

Issue 2770143002: More generic function type cases working (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/summary/summarize_ast.dart ('k') | tests/language/language_analyzer2.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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';
« no previous file with comments | « pkg/analyzer/lib/src/summary/summarize_ast.dart ('k') | tests/language/language_analyzer2.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698