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

Side by Side Diff: pkg/front_end/test/fasta/rasta/generic_factory.dart

Issue 2825063002: Move kernel baseline tests to front_end. (Closed)
Patch Set: Created 3 years, 8 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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE.md file.
4
5 class C1 {
6 }
7
8 class C2 {
9 }
10
11 class C3 {
12 }
13
14 class A<T> {
15 A.internal();
16
17 factory A.a() = B<T>.a;
18 factory A.b() = B<C1>.a;
19 factory A.c() = Missing;
20 }
21
22 class B<S> extends A<S> {
23 B.internal()
24 : super.internal();
25
26 factory B.a() = C<S>;
27 factory B.b() = C<C2>;
28 }
29
30 class C<U> extends B<U> {
31 C()
32 : super.internal();
33 }
34
35 main() {
36 new A<C3>.a();
37 new A<C3>.b();
38 new B<C3>.a();
39 new B<C3>.b();
40 new A<C3>.c();
41 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698