7914382b50
In response to https://github.com/dart-lang/language/pull/2960 TEST=existing expectation tests Change-Id: I5c0d9070b98074c167dea0a0b9a0d576d4aa33d3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/291825 Reviewed-by: Slava Egorov <vegorov@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
23 lines
900 B
Plaintext
23 lines
900 B
Plaintext
library /*isNonNullableByDefault*/;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
static method test(dynamic x) → dynamic {
|
|
#L1:
|
|
{
|
|
final synthesized dynamic #0#0 = x;
|
|
{
|
|
if(let final dynamic #t1 = #0#0 as{ForNonNullableByDefault} core::Object in (#0#0 as{ForNonNullableByDefault} core::Object) is{ForNonNullableByDefault} core::Map<core::Object?, core::Object?> && ((#0#0 as{ForNonNullableByDefault} core::Object) as{ForNonNullableByDefault} core::Map<core::Object?, core::Object?>).{core::Map::containsKey}(#C1){(core::Object?) → core::bool} && #C2 =={core::num::==}{(core::Object) → core::bool} ((#0#0 as{ForNonNullableByDefault} core::Object) as{ForNonNullableByDefault} core::Map<core::Object?, core::Object?>).{core::Map::[]}(#C1){(core::Object?) → core::Object?}) {
|
|
{
|
|
break #L1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
constants {
|
|
#C1 = "a"
|
|
#C2 = 1
|
|
}
|