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

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

Issue 2953503002: Only set types of conditional expressions in strong mode. (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 = <dynamic>[1]; 12 core::List<core::int> l1 = <dynamic>[1];
13 core::List<core::int> l2 = <dynamic>[2]; 13 core::List<core::int> l2 = <dynamic>[2];
14 dynamic x = new self::C::•<dynamic>(l1); 14 dynamic x = new self::C::•<dynamic>(l1);
15 dynamic y = new self::C::•<dynamic>(l2); 15 dynamic y = new self::C::•<dynamic>(l2);
16 dynamic z = new self::C::•<dynamic>(b ?{core::List<core::int>} l1 : l2); 16 dynamic z = new self::C::•<dynamic>(b ? l1 : l2);
17 } 17 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698