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

Side by Side Diff: pkg/front_end/testcases/override.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; 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 constructor •() → void 6 default constructor •() → void
7 : super core::Object::•() 7 : super core::Object::•()
8 ; 8 ;
9 } 9 }
10 class Bar extends self::Foo { 10 class Bar extends self::Foo {
11 constructor •() → void 11 default constructor •() → void
12 : super self::Foo::•() 12 : super self::Foo::•()
13 ; 13 ;
14 } 14 }
15 class Base extends core::Object { 15 class Base extends core::Object {
16 constructor •() → void 16 default constructor •() → void
17 : super core::Object::•() 17 : super core::Object::•()
18 ; 18 ;
19 method method() → self::Foo { 19 method method() → self::Foo {
20 return new self::Foo::•(); 20 return new self::Foo::•();
21 } 21 }
22 } 22 }
23 class Sub extends self::Base { 23 class Sub extends self::Base {
24 constructor •() → void 24 default constructor •() → void
25 : super self::Base::•() 25 : super self::Base::•()
26 ; 26 ;
27 method method() → self::Foo { 27 method method() → self::Foo {
28 return new self::Bar::•(); 28 return new self::Bar::•();
29 } 29 }
30 } 30 }
31 static method main(core::List<core::String> args) → dynamic { 31 static method main(core::List<core::String> args) → dynamic {
32 self::Base object = args.{core::List::length}.{core::num::==}(0) ?{self::Base} new self::Base::•() : new self::Sub::•(); 32 self::Base object = args.{core::List::length}.{core::num::==}(0) ?{self::Base} new self::Base::•() : new self::Sub::•();
33 self::Foo a = object.{self::Base::method}(); 33 self::Foo a = object.{self::Base::method}();
34 core::print(a); 34 core::print(a);
35 } 35 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698