| library; |
| import self as self; |
| import "dart:core" as core; |
| |
| static method test(dynamic x) → dynamic { |
| #L1: |
| { |
| final synthesized dynamic #0#0 = x; |
| function ##0#5#initializer() → core::Object? |
| return ((let dynamic #t1 = #0#0 in #t1 == null ?{core::Object} #t1 as core::Object : #t1{core::Object}) as{Unchecked} core::Map<core::Object?, core::Object?>).{core::Map::[]}(#C1){(core::Object?) → core::Object?}; |
| late final synthesized core::Object? #0#5 = ##0#5#initializer(){() → core::Object?}; |
| { |
| if(let final core::Object #t2 = let dynamic #t3 = #0#0 in #t3 == null ?{core::Object} #t3 as core::Object : #t3{core::Object} in (let dynamic #t4 = #0#0 in #t4 == null ?{core::Object} #t4 as core::Object : #t4{core::Object}) is core::Map<core::Object?, core::Object?> && (!(#0#5 == null) || null is core::Object? && ((let dynamic #t5 = #0#0 in #t5 == null ?{core::Object} #t5 as core::Object : #t5{core::Object}) as{Unchecked} core::Map<core::Object?, core::Object?>).{core::Map::containsKey}(#C1){(core::Object?) → core::bool}) && #C2 =={core::num::==}{(core::Object) → core::bool} #0#5) { |
| { |
| break #L1; |
| } |
| } |
| } |
| } |
| } |
| |
| constants { |
| #C1 = "a" |
| #C2 = 1 |
| } |
| |
| Extra constant evaluation status: |
| Evaluated: IsExpression @ org-dartlang-testcase:///map_pattern_inside_cast.dart:7:14 -> BoolConstant(true) |
| Extra constant evaluation: evaluated: 50, effectively constant: 1 |