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

Side by Side Diff: testcases/spec-mode/redirecting_factory.baseline.txt

Issue 2473223003: Do not duplicate constructors for named mixin applications. (Closed)
Patch Set: Created 4 years, 1 month 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 abstract class FooBase<Tf extends core::Object> extends core::Object { 5 abstract class FooBase<Tf extends core::Object> extends core::Object {
6 abstract get x() → core::int; 6 abstract get x() → core::int;
7 } 7 }
8 abstract class Foo<T extends core::Object> extends core::Object implements self: :FooBase<dynamic> { 8 abstract class Foo<T extends core::Object> extends core::Object implements self: :FooBase<dynamic> {
9 } 9 }
10 class Bar<Sb extends core::Object, Tb extends core::Object> extends core::Object implements self::Foo<self::Bar::Tb> { 10 class Bar<Sb extends core::Object, Tb extends core::Object> extends core::Object implements self::Foo<self::Bar::Tb> {
(...skipping 27 matching lines...) Expand all
38 } 38 }
39 class Mixin<M extends core::Object> extends core::Object { 39 class Mixin<M extends core::Object> extends core::Object {
40 constructor •() → void 40 constructor •() → void
41 : super core::Object::•() 41 : super core::Object::•()
42 ; 42 ;
43 } 43 }
44 class Mix<M extends core::Object> extends self::Base<self::Mix::M> implements se lf::Mixin<self::Mix::M> { 44 class Mix<M extends core::Object> extends self::Base<self::Mix::M> implements se lf::Mixin<self::Mix::M> {
45 constructor •() → void 45 constructor •() → void
46 : super self::Base::•() 46 : super self::Base::•()
47 ; 47 ;
48 constructor •() → void
49 : super self::Base::•()
50 ;
51 } 48 }
52 static method main() → dynamic { 49 static method main() → dynamic {
53 core::print(new self::Bar::•<core::String, core::double>(4).x); 50 core::print(new self::Bar::•<core::String, core::double>(4).x);
54 new self::SimpleCaseImpl2::•<core::int, core::double>(); 51 new self::SimpleCaseImpl2::•<core::int, core::double>();
55 new self::Mix::•<core::double>(); 52 new self::Mix::•<core::double>();
56 } 53 }
OLDNEW
« no previous file with comments | « lib/transformations/mixin_full_resolution.dart ('k') | testcases/strong-mode/redirecting_factory.baseline.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698