fdc765faad
TEST=existing Change-Id: I0a8fdf09f742b55357411f12dc6164d4050bb83c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/196283 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
18 lines
569 B
Plaintext
18 lines
569 B
Plaintext
library /*isNonNullableByDefault*/;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
typedef F = (<T extends Never = dynamic>(T) → void) → Never;
|
|
static method main() → void {
|
|
core::print("Are ${#C1}, ${#C1} identical?");
|
|
core::print(core::identical(#C1, #C1));
|
|
}
|
|
|
|
constants {
|
|
#C1 = TypeLiteralConstant((<T extends Never*>(Never*) →* void) →* Never*)
|
|
}
|
|
|
|
Extra constant evaluation status:
|
|
Evaluated: StaticInvocation @ org-dartlang-testcase:///issue44857.dart:10:9 -> BoolConstant(true)
|
|
Extra constant evaluation: evaluated: 4, effectively constant: 1
|