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

Unified Diff: test/dart_codegen/expect/convert/json.dart

Issue 1010893004: Allow S->T <: dynamic->T (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rebase and address comments Created 5 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 | « test/dart_codegen/expect/collection/splay_tree.dart ('k') | test/dart_codegen/expect/core/uri.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/dart_codegen/expect/convert/json.dart
diff --git a/test/dart_codegen/expect/convert/json.dart b/test/dart_codegen/expect/convert/json.dart
index 58378156a92763e828ed2095d26537ed965df75c..5ca0e8ef25ebabe498e0f9110cb61e7c53ab0956 100644
--- a/test/dart_codegen/expect/convert/json.dart
+++ b/test/dart_codegen/expect/convert/json.dart
@@ -348,14 +348,18 @@ writeString(',');
void writeMap(Map<String, Object> map) {
writeString('{');
String separator = '"';
- map.forEach((String key, value) {
+ map.forEach(((__x27) => DEVC$RT.wrap((dynamic f(String __u19, dynamic __u20)) {
+dynamic c(String x0, dynamic x1) => f(x0, x1);
+ return f == null ? null : c;
+}
+, __x27, __t24, __t21, "WrapLiteral", """line 721, column 17 of dart:convert/json.dart: """, __x27 is __t21))((String key, value) {
writeString(separator);
separator = ',"';
writeStringContent(key);
writeString('":');
writeObject(value);
}
-);
+));
writeString('}');
}
}
@@ -389,11 +393,7 @@ writeString('{}');
writeString('{\n');
_indentLevel++;
bool first = true;
- map.forEach(((__x27) => DEVC$RT.wrap((dynamic f(String __u19, Object __u20)) {
-dynamic c(String x0, Object x1) => f(DEVC$RT.cast(x0, dynamic, String, "CastParam", """line 773, column 19 of dart:convert/json.dart: """, x0 is String, true), x1);
- return f == null ? null : c;
-}
-, __x27, __t24, __t21, "WrapLiteral", """line 773, column 19 of dart:convert/json.dart: """, __x27 is __t21))((String key, Object value) {
+ map.forEach((String key, Object value) {
if (!first) {
writeString(",\n");
}
@@ -404,7 +404,7 @@ writeString(",\n");
writeObject(value);
first = false;
}
-));
+);
writeString('\n');
_indentLevel--;
writeIndentation(_indentLevel);
@@ -566,5 +566,5 @@ writeByte(indent[i]);
typedef Object __t7(Object __u8);
typedef dynamic __t9(dynamic __u10);
typedef dynamic __t13(Object __u14);
- typedef void __t21(dynamic __u22, dynamic __u23);
- typedef dynamic __t24(String __u25, Object __u26);
+ typedef void __t21(String __u22, Object __u23);
+ typedef dynamic __t24(String __u25, dynamic __u26);
« no previous file with comments | « test/dart_codegen/expect/collection/splay_tree.dart ('k') | test/dart_codegen/expect/core/uri.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698