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

Side by Side Diff: pkg/front_end/test/fasta/mixin.dart

Issue 2689303003: Implement type variables in mixin applications. (Closed)
Patch Set: Address comments. Created 3 years, 10 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 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 class B extends Object with M1, M2 {
6 B(value);
7 }
8
5 abstract class M1 { 9 abstract class M1 {
6 m() => print("M1"); 10 m() => print("M1");
7 } 11 }
8 12
9 abstract class M2 { 13 abstract class M2 {
10 m() => print("M2"); 14 m() => print("M2");
11 } 15 }
12 16
13 class C extends Object with M1, M2 { 17 class C extends Object with M1, M2 {
18 C(value);
19 }
20
21 abstract class G1<T> {
22 m() => print(T);
23 }
24
25 class D<S> extends Object with G1<S> {
14 } 26 }
15 27
16 main() { 28 main() {
17 new C().m(); 29 new B(null).m();
30 new C(null).m();
31 new D().m();
32 new D<int>().m();
33 new D<List<int>>().m();
18 } 34 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/source/source_library_builder.dart ('k') | pkg/front_end/test/fasta/mixin.dart.direct.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698