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

Unified Diff: pkg/front_end/testcases/inference/generic_methods_iterable_and_future.dart

Issue 2922383003: Add int.toString() to analyzer mock SDK. (Closed)
Patch Set: Created 3 years, 6 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/front_end/testcases/inference/generic_methods_iterable_and_future.dart
diff --git a/pkg/front_end/testcases/inference/generic_methods_iterable_and_future.dart b/pkg/front_end/testcases/inference/generic_methods_iterable_and_future.dart
index 0de66c816a1995c024b08cc113644c11c9ea2698..82db05f02f77cef6308f75d157bad6c4ddcc0a4f 100644
--- a/pkg/front_end/testcases/inference/generic_methods_iterable_and_future.dart
+++ b/pkg/front_end/testcases/inference/generic_methods_iterable_and_future.dart
@@ -21,7 +21,7 @@ main() {
'',
/*@returnType=FutureOr<String>*/ (/*@type=FutureOr<String>*/ x,
/*@type=int*/ y) => /*info:DYNAMIC_CAST,info:DYNAMIC_INVOKE*/ x /*error:UNDEFINED_OPERATOR*/ +
- y. /*@target=Object::toString*/ toString()));
+ y. /*@target=int::toString*/ toString()));
Future<String> results3 =
results. /*@typeArgs=String*/ /*@target=Future::then*/ then(
@@ -32,7 +32,7 @@ main() {
x,
/*@type=int*/ y) =>
x /*@target=String::+*/ +
- y. /*@target=Object::toString*/ toString()));
+ y. /*@target=int::toString*/ toString()));
Future<String> results4 =
results. /*@typeArgs=String*/ /*@target=Future::then*/ then(
@@ -42,5 +42,5 @@ main() {
/*@returnType=String*/ (/*@type=String*/ x,
/*@type=int*/ y) =>
x /*@target=String::+*/ +
- y. /*@target=Object::toString*/ toString()));
+ y. /*@target=int::toString*/ toString()));
}

Powered by Google App Engine
This is Rietveld 408576698