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

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

Issue 2926433002: Mark some more type inference tests as passing. (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
« no previous file with comments | « pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart.strong.expect ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart.strong.expect
diff --git a/pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart.strong.expect b/pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart.strong.expect
new file mode 100644
index 0000000000000000000000000000000000000000..4e1c8332c5e61b6b9797997c8ee088a1f5dbb01a
--- /dev/null
+++ b/pkg/front_end/testcases/inference/downwards_inference_on_map_literals.dart.strong.expect
@@ -0,0 +1,47 @@
+library test;
+import self as self;
+import "dart:core" as core;
+
+static method foo([core::Map<core::int, core::String> m1 = const <core::int, core::String>{1: "hello"}, core::Map<core::int, core::String> m2 = const <core::int, core::String>{"hello": "world"}]) → void {}
+static method main() → void {
+ {
+ core::Map<core::int, core::String> l0 = <core::int, core::String>{};
+ core::Map<core::int, core::String> l1 = <core::int, core::String>{3: "hello"};
+ core::Map<core::int, core::String> l2 = <core::int, core::String>{"hello": "hello"};
+ core::Map<core::int, core::String> l3 = <core::int, core::String>{3: 3};
+ core::Map<core::int, core::String> l4 = <core::int, core::String>{3: "hello", "hello": 3};
+ }
+ {
+ core::Map<dynamic, dynamic> l0 = <dynamic, dynamic>{};
+ core::Map<dynamic, dynamic> l1 = <dynamic, dynamic>{3: "hello"};
+ core::Map<dynamic, dynamic> l2 = <dynamic, dynamic>{"hello": "hello"};
+ core::Map<dynamic, dynamic> l3 = <dynamic, dynamic>{3: 3};
+ core::Map<dynamic, dynamic> l4 = <dynamic, dynamic>{3: "hello", "hello": 3};
+ }
+ {
+ core::Map<dynamic, core::String> l0 = <dynamic, core::String>{};
+ core::Map<dynamic, core::String> l1 = <dynamic, core::String>{3: "hello"};
+ core::Map<dynamic, core::String> l2 = <dynamic, core::String>{"hello": "hello"};
+ core::Map<dynamic, core::String> l3 = <dynamic, core::String>{3: 3};
+ core::Map<dynamic, core::String> l4 = <dynamic, core::String>{3: "hello", "hello": 3};
+ }
+ {
+ core::Map<core::int, dynamic> l0 = <core::int, dynamic>{};
+ core::Map<core::int, dynamic> l1 = <core::int, dynamic>{3: "hello"};
+ core::Map<core::int, dynamic> l2 = <core::int, dynamic>{"hello": "hello"};
+ core::Map<core::int, dynamic> l3 = <core::int, dynamic>{3: 3};
+ core::Map<core::int, dynamic> l4 = <core::int, dynamic>{3: "hello", "hello": 3};
+ }
+ {
+ core::Map<core::int, core::String> l0 = <core::num, dynamic>{};
+ core::Map<core::int, core::String> l1 = <core::num, dynamic>{3: "hello"};
+ core::Map<core::int, core::String> l3 = <core::num, dynamic>{3: 3};
+ }
+ {
+ const core::Map<core::int, core::String> l0 = const <core::int, core::String>{};
+ const core::Map<core::int, core::String> l1 = const <core::int, core::String>{3: "hello"};
+ const core::Map<core::int, core::String> l2 = const <core::int, core::String>{"hello": "hello"};
+ const core::Map<core::int, core::String> l3 = const <core::int, core::String>{3: 3};
+ const core::Map<core::int, core::String> l4 = const <core::int, core::String>{3: "hello", "hello": 3};
+ }
+}
« no previous file with comments | « pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_downwards.dart.strong.expect ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698