blob: 3e34a968e5006ebab8c67d196402d704879aa163 [file] [log] [blame]
class A {
A.new();
factory A.redirectingFactory() = A.new;
factory A.redirectingFactoryChild() = B.new;
A.redirecting() : this.new();
}
class B extends A {}
class C {
final int x;
const C.new(this.x);
}
class D extends C {
D(int x) : super.new(x * 2);
}
test() {}
main() {}