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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
(Empty)
1 library test;
2 import self as self;
3 import "dart:core" as core;
4
5 typedef Function2 = <S extends core::Object, T extends core::Object>(S) → T;
6 class A<T extends core::Object> extends core::Object {
7 field (self::A::T) → self::A::T x;
8 constructor •((self::A::T) → self::A::T x) → void
9 : self::A::x = x, super core::Object::•()
10 ;
11 }
12 static method main() → void {
13 {
14 core::String x = "hello";
15 core::int y = 3;
16 function f(core::List<core::Map<core::int, core::String>> l) → void {}
17 ;
18 f.call(<core::Map<core::int, core::String>>[<core::int, core::String>{y: x}] );
19 }
20 {
21 function f(core::int x) → core::int
22 return 0;
23 self::A<core::int> a = new self::A::•<core::int>(f);
24 }
25 }
OLDNEW
« 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