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

Unified Diff: pkg/analyzer/test/src/summary/resynthesize_test.dart

Issue 1560343002: Test and fix resynthesized function-typed parameters referring to type parameters. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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/resynthesize.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/summary/resynthesize_test.dart
diff --git a/pkg/analyzer/test/src/summary/resynthesize_test.dart b/pkg/analyzer/test/src/summary/resynthesize_test.dart
index 642b60b071301f72ff7437c5ad464016a7c31dd9..f13d981195dcb8a3b1dce7b9e58a93bb1cc2147e 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_test.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_test.dart
@@ -829,6 +829,10 @@ class E {
checkLibrary('class C { f(g(x, y)) {} }');
}
+ test_method_parameter_parameters_in_generic_class() {
+ checkLibrary('class C<A, B> { f(A g(B x)) {} }');
+ }
+
test_method_parameter_return_type() {
checkLibrary('class C { f(int g()) {} }');
}
@@ -1017,6 +1021,10 @@ class E {
checkLibrary('typedef F(g(x, y));');
}
+ test_typedef_parameter_parameters_in_generic_class() {
+ checkLibrary('typedef F<A, B>(A g(B x));');
+ }
+
test_typedef_parameter_return_type() {
checkLibrary('typedef F(int g());');
}
« no previous file with comments | « pkg/analyzer/lib/src/summary/resynthesize.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698