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

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

Issue 2981783002: Set 'isSyntheticDefault' for default constructors. (Closed)
Patch Set: Created 3 years, 5 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 default constructor •() → void
7 : super core::Object::•() 7 : super core::Object::•()
8 ; 8 ;
9 method call() → core::int 9 method call() → core::int
10 return 0; 10 return 0;
11 } 11 }
12 class B extends core::Object { 12 class B extends core::Object {
13 constructor •() → void 13 default constructor •() → void
14 : super core::Object::•() 14 : super core::Object::•()
15 ; 15 ;
16 get call() → self::A 16 get call() → self::A
17 return new self::A::•(); 17 return new self::A::•();
18 } 18 }
19 class D extends core::Object { 19 class D extends core::Object {
20 field self::A fieldA = new self::A::•(); 20 field self::A fieldA = new self::A::•();
21 field self::B fieldB = new self::B::•(); 21 field self::B fieldB = new self::B::•();
22 constructor •() → void 22 default constructor •() → void
23 : super core::Object::•() 23 : super core::Object::•()
24 ; 24 ;
25 get getA() → self::A 25 get getA() → self::A
26 return new self::A::•(); 26 return new self::A::•();
27 get getB() → self::B 27 get getB() → self::B
28 return new self::B::•(); 28 return new self::B::•();
29 } 29 }
30 static method main() → dynamic { 30 static method main() → dynamic {
31 core::int callA = new self::A::•().{self::A::call}(); 31 core::int callA = new self::A::•().{self::A::call}();
32 dynamic callB = new self::B::•().{self::B::call}(); 32 dynamic callB = new self::B::•().{self::B::call}();
33 core::int callFieldA = new self::D::•().{self::D::fieldA}(); 33 core::int callFieldA = new self::D::•().{self::D::fieldA}();
34 core::int callGetA = new self::D::•().{self::D::getA}(); 34 core::int callGetA = new self::D::•().{self::D::getA}();
35 dynamic callFieldB = new self::D::•().{self::D::fieldB}(); 35 dynamic callFieldB = new self::D::•().{self::D::fieldB}();
36 dynamic callGetB = new self::D::•().{self::D::getB}(); 36 dynamic callGetB = new self::D::•().{self::D::getB}();
37 } 37 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698