c1bb19d002
Cleans up some missing promoted variable gets and temporary variables that were incorrectly marked as final. Change-Id: I26412efe2dbb45b807ad6aba7f67c27981b1619c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/279011 Reviewed-by: Jens Johansen <jensj@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
40 lines
622 B
Plaintext
40 lines
622 B
Plaintext
library /*isNonNullableByDefault*/;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
static method f(dynamic x) → dynamic
|
|
return block {
|
|
core::int #t1;
|
|
final dynamic #t2 = x;
|
|
core::int #t3 = -1;
|
|
core::bool #t4 = false;
|
|
if(!#t4 && #t2 is core::int) {
|
|
#t3 = 0;
|
|
#t4 = true;
|
|
}
|
|
if(!#t4) {
|
|
#t3 = 1;
|
|
#t4 = true;
|
|
}
|
|
#L1:
|
|
switch(#t3) {
|
|
#L2:
|
|
case #C1:
|
|
{
|
|
#t1 = 0;
|
|
break #L1;
|
|
}
|
|
#L3:
|
|
case #C2:
|
|
{
|
|
#t1 = 1;
|
|
break #L1;
|
|
}
|
|
}
|
|
} =>#t1;
|
|
|
|
constants {
|
|
#C1 = 0
|
|
#C2 = 1
|
|
}
|