blob: 28b812ff7980d6d8508c8ee435e26a615a6be17e [file] [log] [blame]
// Copyright (c) 2020, 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.
// Regression test for
// Verifies that TFA doesn't crash if @pragma("vm:entry-point") is used
// on redirecting factory constructors.
class A {
factory = B;
class B extends A {
B(); // Should be retained.
class C {
factory = D.baz;
class D extends C {
factory D.baz() = E;
class E extends D {
E(); // Should be retained.
void main() {}