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

Side by Side Diff: pkg/front_end/testcases/inference/list_literals.dart.strong.expect

Issue 2874033003: Set MethodInvocation.interfaceTarget during type inference. (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 unified diff | Download patch
OLDNEW
1 library test; 1 library test;
2 import self as self; 2 import self as self;
3 import "dart:core" as core; 3 import "dart:core" as core;
4 4
5 static method test1() → dynamic { 5 static method test1() → dynamic {
6 core::List<core::int> x = <core::int>[1, 2, 3]; 6 core::List<core::int> x = <core::int>[1, 2, 3];
7 x.add("hi"); 7 x.{core::List::add}("hi");
8 x.add(4.0); 8 x.{core::List::add}(4.0);
9 x.add(4); 9 x.{core::List::add}(4);
10 core::List<core::num> y = x; 10 core::List<core::num> y = x;
11 } 11 }
12 static method test2() → dynamic { 12 static method test2() → dynamic {
13 core::List<core::num> x = <core::num>[1, 2.0, 3]; 13 core::List<core::num> x = <core::num>[1, 2.0, 3];
14 x.add("hi"); 14 x.{core::List::add}("hi");
15 x.add(4.0); 15 x.{core::List::add}(4.0);
16 core::List<core::int> y = x; 16 core::List<core::int> y = x;
17 } 17 }
18 static method main() → dynamic { 18 static method main() → dynamic {
19 self::test1(); 19 self::test1();
20 self::test2(); 20 self::test2();
21 } 21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698