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

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

Issue 1700863002: Add a local generic function into the static generic method tests. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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/test/src/summary/resynthesize_test.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/summary_common.dart
diff --git a/pkg/analyzer/test/src/summary/summary_common.dart b/pkg/analyzer/test/src/summary/summary_common.dart
index 74c31155769c80e2746133ae71e50e81f766b52b..0217fa7596d836a822cf43d5ec26493226b75989 100644
--- a/pkg/analyzer/test/src/summary/summary_common.dart
+++ b/pkg/analyzer/test/src/summary/summary_common.dart
@@ -4823,12 +4823,19 @@ f() {}''';
UnlinkedClass cls = serializeClassText('''
class C<T, U> {
static void m<V, W>(V v, W w) {
+ void f<X, Y>(V v, W w, X x, Y y) {
+ }
}
}
''');
- List<UnlinkedParam> params = cls.executables[0].parameters;
- checkParamTypeRef(params[0].type, 2);
- checkParamTypeRef(params[1].type, 1);
+ UnlinkedExecutable m = cls.executables[0];
+ UnlinkedExecutable f = m.localFunctions[0];
+ checkParamTypeRef(m.parameters[0].type, 2);
+ checkParamTypeRef(m.parameters[1].type, 1);
+ checkParamTypeRef(f.parameters[0].type, 4);
+ checkParamTypeRef(f.parameters[1].type, 3);
+ checkParamTypeRef(f.parameters[2].type, 2);
+ checkParamTypeRef(f.parameters[3].type, 1);
}
test_generic_method_in_generic_class() {
« no previous file with comments | « pkg/analyzer/test/src/summary/resynthesize_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698