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

Unified Diff: pkg/front_end/testcases/inference/infer_typed_map_literal.dart.strong.expect

Issue 2905353002: Add type inference logic for map literals (Closed)
Patch Set: Created 3 years, 7 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/infer_typed_map_literal.dart.strong.expect
diff --git a/pkg/front_end/testcases/inference/infer_typed_map_literal.dart.strong.expect b/pkg/front_end/testcases/inference/infer_typed_map_literal.dart.strong.expect
new file mode 100644
index 0000000000000000000000000000000000000000..9542da0d6c24a4c7a57c50b2cb5dc184f670196f
--- /dev/null
+++ b/pkg/front_end/testcases/inference/infer_typed_map_literal.dart.strong.expect
@@ -0,0 +1,18 @@
+library test;
+import self as self;
+import "dart:core" as core;
+
+static field core::Map<core::int, core::String> a = <core::int, core::String>{0: "aaa", 1: "bbb"};
+static field core::Map<core::double, core::int> b = <core::double, core::int>{1.1: 1, 2.2: 2};
+static field core::Map<core::List<core::int>, core::Map<core::String, core::double>> c = <core::List<core::int>, core::Map<core::String, core::double>>{};
+static field core::Map<core::int, dynamic> d = <core::int, dynamic>{};
+static field core::Map<dynamic, core::int> e = <dynamic, core::int>{};
+static field core::Map<dynamic, dynamic> f = <dynamic, dynamic>{};
+static method main() → dynamic {
+ self::a;
+ self::b;
+ self::c;
+ self::d;
+ self::e;
+ self::f;
+}

Powered by Google App Engine
This is Rietveld 408576698