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

Unified Diff: pkg/kernel/testcases/input/redirecting_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/kernel/testcases/input/prefer_baseclass.dart ('k') | pkg/kernel/testcases/input/static_setter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/testcases/input/redirecting_factory.dart
diff --git a/pkg/kernel/testcases/input/redirecting_factory.dart b/pkg/kernel/testcases/input/redirecting_factory.dart
deleted file mode 100644
index 9ee5b829d6f82c52bac782006f06cb54a2d24462..0000000000000000000000000000000000000000
--- a/pkg/kernel/testcases/input/redirecting_factory.dart
+++ /dev/null
@@ -1,43 +0,0 @@
-abstract class FooBase<Tf> {
- int get x;
- factory FooBase(int x) = Foo<Tf>;
-}
-
-abstract class Foo<T> implements FooBase {
- factory Foo(int x) = Bar<String, T>;
-}
-
-class Bar<Sb, Tb> implements Foo<Tb> {
- int x;
- Bar(this.x) {
- print('Bar<$Sb,$Tb>');
- }
-}
-
-class Builder<X> {
- method() {
- return new FooBase<X>(4);
- }
-}
-
-class SimpleCase<A, B> {
- factory SimpleCase() = SimpleCaseImpl<A, B>;
-}
-
-class SimpleCaseImpl<Ai, Bi> implements SimpleCase<Ai, Bi> {
- factory SimpleCaseImpl() = SimpleCaseImpl2<Ai, Bi>;
-}
-
-class SimpleCaseImpl2<Ai2, Bi2> implements SimpleCaseImpl<Ai2, Bi2> {}
-
-class Base<M> {}
-
-class Mixin<M> {}
-
-class Mix<M> = Base<M> with Mixin<M>;
-
-main() {
- print(new FooBase<double>(4).x);
- new SimpleCase<int, double>();
- new Mix<double>();
-}
« no previous file with comments | « pkg/kernel/testcases/input/prefer_baseclass.dart ('k') | pkg/kernel/testcases/input/static_setter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698