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

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

Issue 2949753002: Print static types of conditional expressions. (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
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 class C<T extends core::Object> extends core::Object { 5 class C<T extends core::Object> extends core::Object {
6 constructor •(core::List<self::C::T> x) → void 6 constructor •(core::List<self::C::T> x) → void
7 : super core::Object::•() 7 : super core::Object::•()
8 ; 8 ;
9 } 9 }
10 static method main() → dynamic { 10 static method main() → dynamic {
11 core::bool b = false; 11 core::bool b = false;
12 core::List<core::int> l1 = <core::int>[1]; 12 core::List<core::int> l1 = <core::int>[1];
13 core::List<core::int> l2 = <core::int>[2]; 13 core::List<core::int> l2 = <core::int>[2];
14 self::C<core::int> x = new self::C::•<core::int>(l1); 14 self::C<core::int> x = new self::C::•<core::int>(l1);
15 self::C<core::int> y = new self::C::•<core::int>(l2); 15 self::C<core::int> y = new self::C::•<core::int>(l2);
16 self::C<core::int> z = new self::C::•<core::int>(b ? l1 : l2); 16 self::C<core::int> z = new self::C::•<core::int>(b ?{core::List<core::int>} l1 : l2);
17 } 17 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698