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

Unified Diff: pkg/front_end/testcases/inference/downward_inference_miscellaneous.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/downward_inference_miscellaneous.dart.strong.expect
diff --git a/pkg/front_end/testcases/inference/downward_inference_miscellaneous.dart.strong.expect b/pkg/front_end/testcases/inference/downward_inference_miscellaneous.dart.strong.expect
new file mode 100644
index 0000000000000000000000000000000000000000..dd7db971b787f2f6227c0f93af9f9ffddb091f7d
--- /dev/null
+++ b/pkg/front_end/testcases/inference/downward_inference_miscellaneous.dart.strong.expect
@@ -0,0 +1,25 @@
+library test;
+import self as self;
+import "dart:core" as core;
+
+typedef Function2 = <S extends core::Object, T extends core::Object>(S) → T;
+class A<T extends core::Object> extends core::Object {
+ field (self::A::T) → self::A::T x;
+ constructor •((self::A::T) → self::A::T x) → void
+ : self::A::x = x, super core::Object::•()
+ ;
+}
+static method main() → void {
+ {
+ core::String x = "hello";
+ core::int y = 3;
+ function f(core::List<core::Map<core::int, core::String>> l) → void {}
+ ;
+ f.call(<core::Map<core::int, core::String>>[<core::int, core::String>{y: x}]);
+ }
+ {
+ function f(core::int x) → core::int
+ return 0;
+ self::A<core::int> a = new self::A::•<core::int>(f);
+ }
+}
« no previous file with comments | « pkg/front_end/test/fasta/strong.status ('k') | pkg/front_end/testcases/inference/downwards_inference_yield_yield_star.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698