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

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

Issue 2905123002: Perform type inference on explicitly typed fields. (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 class A extends core::Object { 5 class A extends core::Object {
6 constructor •() → void 6 constructor •() → void
7 : super core::Object::•() 7 : super core::Object::•()
8 ; 8 ;
9 operator ~() → core::int 9 operator ~() → core::int
10 return 1; 10 return 1;
11 operator unary-() → core::double 11 operator unary-() → core::double
12 return 2.0; 12 return 2.0;
13 } 13 }
14 static field self::A a = new self::A::•(); 14 static field self::A a = new self::A::•();
15 static field core::int v_complement = self::a.~(); 15 static field core::int v_complement = self::a.{self::A::~}();
16 static field core::double v_negate = self::a.unary-(); 16 static field core::double v_negate = self::a.{self::A::unary-}();
17 static method main() → dynamic { 17 static method main() → dynamic {
18 self::a; 18 self::a;
19 self::v_complement; 19 self::v_complement;
20 self::v_negate; 20 self::v_negate;
21 } 21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698