Files
sdk/pkg/front_end/testcases/nnbd/issue44857.dart.strong.expect
T
Dmitry Stefantsov c6bd2afc10 [cfe] Remove a side effect from computeConstCanonicalType
Closes #44857.

Bug: https://github.com/dart-lang/sdk/issues/44857
Change-Id: I1082fded9a0b06cbcf30c484975b0cf464db75a4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/182781
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Dmitry Stefantsov <dmitryas@google.com>
2021-02-08 13:22:13 +00:00

14 lines
376 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 = dynamic>(Never) → void) → Never)
}