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

Side by Side Diff: pkg/front_end/testcases/rasta/issue_000067.dart.direct.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; 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 import "package:expect/expect.dart" as exp; 4 import "package:expect/expect.dart" as exp;
5 5
6 class A extends core::Object { 6 class A extends core::Object {
7 static field dynamic _redirecting# = <dynamic>[self::A::foo]; 7 static field dynamic _redirecting# = <dynamic>[self::A::foo];
8 constructor •() → void 8 constructor •() → void
9 : super core::Object::•() {} 9 : super core::Object::•() {}
10 static factory foo() → self::A 10 static factory foo() → self::A
11 let dynamic #redirecting_factory = self::C::bar in invalid-expression; 11 let dynamic #redirecting_factory = self::C::bar in invalid-expression;
12 method m() → core::int {} 12 method m() → core::int {}
13 } 13 }
14 class C extends self::A { 14 class C extends self::A {
15 static field dynamic _redirecting# = <dynamic>[self::C::bar]; 15 static field dynamic _redirecting# = <dynamic>[self::C::bar];
16 constructor •() → void 16 constructor •() → void
17 : super self::A::•() {} 17 : super self::A::•() {}
18 static factory bar() → self::C 18 static factory bar() → self::C
19 let dynamic #redirecting_factory = self::D::• in invalid-expression; 19 let dynamic #redirecting_factory = self::D::• in invalid-expression;
20 method m() → core::int { 20 method m() → core::int {
21 return 1; 21 return 1;
22 } 22 }
23 } 23 }
24 class D extends self::C { 24 class D extends self::C {
25 constructor •() → void 25 default constructor •() → void
26 : super self::C::•() 26 : super self::C::•()
27 ; 27 ;
28 method m() → core::int { 28 method m() → core::int {
29 return 2; 29 return 2;
30 } 30 }
31 } 31 }
32 static method main() → dynamic { 32 static method main() → dynamic {
33 self::A a = new self::D::•(); 33 self::A a = new self::D::•();
34 exp::Expect::equals(2, a.m()); 34 exp::Expect::equals(2, a.m());
35 } 35 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698