| library /*isNonNullableByDefault*/; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/constructor_tearoffs/redirecting_constructors.dart:6:5: Error: This requires the 'constructor-tearoffs' language feature to be enabled. |
| // Try updating your pubspec.yaml to set the minimum SDK constraint to 2.14 or higher, and running 'pub get'. |
| // A.new(); |
| // ^^^ |
| // |
| // pkg/front_end/testcases/constructor_tearoffs/redirecting_constructors.dart:7:38: Error: This requires the 'constructor-tearoffs' language feature to be enabled. |
| // Try updating your pubspec.yaml to set the minimum SDK constraint to 2.14 or higher, and running 'pub get'. |
| // factory A.redirectingFactory() = A.new; |
| // ^^^ |
| // |
| // pkg/front_end/testcases/constructor_tearoffs/redirecting_constructors.dart:8:43: Error: This requires the 'constructor-tearoffs' language feature to be enabled. |
| // Try updating your pubspec.yaml to set the minimum SDK constraint to 2.14 or higher, and running 'pub get'. |
| // factory A.redirectingFactoryChild() = B.new; |
| // ^^^ |
| // |
| // pkg/front_end/testcases/constructor_tearoffs/redirecting_constructors.dart:8:41: Error: Redirection constructor target not found: 'B.new' |
| // factory A.redirectingFactoryChild() = B.new; |
| // ^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| |
| class A extends core::Object { |
| static final field dynamic _redirecting# = <dynamic>[self::A::redirectingFactory, self::A::redirectingFactoryChild, self::A::redirectingTwice]/*isLegacy*/; |
| constructor new() → self::A |
| ; |
| static factory redirectingFactory() → self::A |
| let dynamic #redirecting_factory = self::A::new in invalid-expression; |
| static factory redirectingFactoryChild() → self::A |
| let dynamic #redirecting_factory = "B.new" in invalid-expression; |
| static factory redirectingTwice() → self::A |
| let dynamic #redirecting_factory = self::A::redirectingFactory in invalid-expression; |
| } |
| class B extends self::A { |
| synthetic constructor •() → self::B |
| ; |
| } |
| static method test() → dynamic |
| ; |
| static method main() → dynamic |
| ; |