Files
sdk/pkg/front_end/testcases/patterns/null_check_inside_case.dart.weak.expect
T
Johnni Winther ad625dfb5d [cfe] Use lazy-and instead of conditional expression for null-check pattern
In response to https://github.com/dart-lang/sdk/issues/54115

Closes #54114

Change-Id: I6d1d29c19173e703a467f43ec09a7de383b4a80b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338881
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2023-11-30 15:54:41 +00:00

22 lines
336 B
Plaintext

library;
import self as self;
import "dart:core" as core;
static method test(dynamic x) → dynamic {
#L1:
{
final synthesized dynamic #0#0 = x;
{
if(!(#0#0 == null) && #C1 =={core::num::==}{(core::Object) → core::bool} #0#0) {
{
break #L1;
}
}
}
}
}
constants {
#C1 = 1
}