blob: 5d082fb9c51a6346a96b66d2c6faa2d86ec562c7 [file] [log] [blame]
// Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class A {;
factory A.redirectingFactory() =;
factory A.redirectingFactoryChild() =;
factory A.redirectingTwice() = A.redirectingFactory;
class B extends A {}
test() {
A Function() f1 = A.redirectingFactory;
A Function() f2 = A.redirectingFactoryChild;
A Function() f3 = A.redirectingTwice;
A x1 = f1();
B x2 = f2() as B;
A x3 f3();
main() => test();