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

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

Issue 1647253002: Add the ability to summarize inferred types based on function-typed 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
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 d4bf492b16a4eadab15263f1954c218086212485..a88ddf813ac625e19f32b5267ee95561c7f04fea 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_test.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_test.dart
@@ -1501,13 +1501,14 @@ get x => null;''');
' abstract class D<U, V> { Map<V, U> get v; }');
}
- test_inferred_type_via_function_typed_param() {
- if (options.strongMode) {
- // TODO(paulberry): get this test to pass.
- return;
- }
- checkLibrary('class C extends D { f(g) {} }'
- ' abstract class D { void f(int g(String)); }');
+ test_inferred_type_refers_to_method_function_typed_parameter_type() {
+ checkLibrary('class C extends D { void f(int x, g) {} }'
+ ' abstract class D { void f(int x, int g(String s)); }');
+ }
+
+ test_inferred_type_refers_to_setter_function_typed_parameter_type() {
+ checkLibrary('class C extends D { void set f(g) {} }'
+ ' abstract class D { void set f(int g(String s)); }');
}
test_library() {

Powered by Google App Engine
This is Rietveld 408576698