Files
sdk/pkg/front_end/testcases/patterns/null_assert_inside_case.dart.weak.expect
T
Johnni Winther 5d44b804cd [cfe] Avoid unnecessary switch statements
This changes the lowering of switch expressions and pattern switch
statements without continue to only use if-then-else

Change-Id: I3bcbb634ec3153a117c4bd6692a276c1c26e648d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/279964
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
2023-01-31 18:12:44 +00:00

20 lines
344 B
Plaintext

library /*isNonNullableByDefault*/;
import self as self;
import "dart:core" as core;
static method test(dynamic x) → dynamic {
#L1:
{
final dynamic #0#0 = x;
if(let final dynamic #t1 = #0#0! in #C1 =={core::num::==}{(core::Object) → core::bool} #0#0!) {
{
break #L1;
}
}
}
}
constants {
#C1 = 1
}