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

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

Issue 2863603004: Fix handling of null/bottom in front_end 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
(Empty)
1 library test;
2 import self as self;
3 import "dart:core" as core;
4
5 static method test1() → dynamic {
6 core::List<core::int> x = <core::int>[1, 2, 3];
7 x.add("hi");
8 x.add(4.0);
9 x.add(4);
10 core::List<core::num> y = x;
11 }
12 static method test2() → dynamic {
13 core::List<core::num> x = <core::num>[1, 2.0, 3];
14 x.add("hi");
15 x.add(4.0);
16 core::List<core::int> y = x;
17 }
18 static method main() → dynamic {
19 self::test1();
20 self::test2();
21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698