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

Side by Side Diff: pkg/front_end/testcases/null_aware.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; 1 library;
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 Foo extends core::Object { 5 class Foo extends core::Object {
6 field core::int field = null; 6 field core::int field = null;
7 static field core::int staticField = null; 7 static field core::int staticField = null;
8 constructor •() → void 8 constructor •() → void
9 : super core::Object::•() 9 : super core::Object::•()
10 ; 10 ;
11 } 11 }
12 static method main() → dynamic { 12 static method main() → dynamic {
13 self::Foo foo = new self::Foo::•(); 13 self::Foo foo = new self::Foo::•();
14 let final dynamic #t1 = foo in #t1.==(null) ?{dynamic} null : #t1.field = 5; 14 let final dynamic #t1 = foo in #t1.==(null) ? null : #t1.field = 5;
15 self::Foo::staticField = 5; 15 self::Foo::staticField = 5;
16 let final dynamic #t2 = foo in #t2.field.==(null) ?{dynamic} #t2.field = 5 : n ull; 16 let final dynamic #t2 = foo in #t2.field.==(null) ? #t2.field = 5 : null;
17 self::Foo::staticField.==(null) ?{dynamic} self::Foo::staticField = 5 : null; 17 self::Foo::staticField.==(null) ? self::Foo::staticField = 5 : null;
18 let final dynamic #t3 = foo in #t3.==(null) ?{dynamic} null : #t3.field.==(nul l) ?{dynamic} #t3.field = 5 : null; 18 let final dynamic #t3 = foo in #t3.==(null) ? null : #t3.field.==(null) ? #t3. field = 5 : null;
19 self::Foo::staticField.==(null) ?{dynamic} self::Foo::staticField = 5 : null; 19 self::Foo::staticField.==(null) ? self::Foo::staticField = 5 : null;
20 core::int intValue = let final dynamic #t4 = foo.field in #t4.==(null) ?{core: :int} 6 : #t4; 20 core::int intValue = let final dynamic #t4 = foo.field in #t4.==(null) ? 6 : # t4;
21 core::num numValue = let final dynamic #t5 = foo.field in #t5.==(null) ?{core: :num} 4.5 : #t5; 21 core::num numValue = let final dynamic #t5 = foo.field in #t5.==(null) ? 4.5 : #t5;
22 } 22 }
OLDNEW
« no previous file with comments | « pkg/front_end/testcases/micro.dart.direct.expect ('k') | pkg/front_end/testcases/optional.dart.direct.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698