0912e56c09
Closes #45003. Bug: https://github.com/dart-lang/sdk/issues/45003 Change-Id: Ifa16c5859cd11efeed109ff78f5c40c20fe1790d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/185780 Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Dmitry Stefantsov <dmitryas@google.com>
35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
library /*isNonNullableByDefault*/;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
class C extends core::Object /*hasConstConstructor*/ {
|
|
const constructor •({dynamic x = #C1}) → self::C
|
|
: super core::Object::•()
|
|
;
|
|
}
|
|
class B<X extends core::Object? = dynamic> extends self::A /*hasConstConstructor*/ {
|
|
const constructor •() → self::B<self::B::X%>
|
|
: super self::A::•()
|
|
;
|
|
}
|
|
abstract class A extends core::Object /*hasConstConstructor*/ {
|
|
static final field dynamic _redirecting# = <dynamic>[self::A::foo]/*isLegacy*/;
|
|
const constructor •() → self::A
|
|
: super core::Object::•()
|
|
;
|
|
static factory foo() → self::A
|
|
let dynamic #redirecting_factory = self::B::• in let dynamic #typeArg0 = null in invalid-expression;
|
|
}
|
|
static method main() → dynamic {}
|
|
|
|
constants {
|
|
#C1 = self::B<dynamic> {}
|
|
}
|
|
|
|
|
|
Constructor coverage from constants:
|
|
org-dartlang-testcase:///issue45003_2.dart:
|
|
- B. (from org-dartlang-testcase:///issue45003_2.dart:10:9)
|
|
- A. (from org-dartlang-testcase:///issue45003_2.dart:14:9)
|
|
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart:25:9)
|