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

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

Issue 2650913007: Import rasta tests. (Closed)
Patch Set: Address comment. 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
(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
« no previous file with comments | « pkg/fasta/test/rasta/for_loop.dart.outline.expect ('k') | pkg/fasta/test/rasta/generic_factory.dart.dartk.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698