5d44b804cd
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>
16 lines
260 B
Plaintext
16 lines
260 B
Plaintext
library /*isNonNullableByDefault*/;
|
|
import self as self;
|
|
|
|
static method test(dynamic x) → dynamic {
|
|
#L1:
|
|
{
|
|
final dynamic y;
|
|
final dynamic #0#0 = x;
|
|
if(let final dynamic #t1 = y = #0#0 in true) {
|
|
{
|
|
break #L1;
|
|
}
|
|
}
|
|
}
|
|
}
|