4efcda0fd2
Closes #52960 Change-Id: I868a7ef5867ad955072ae5425da82c007ca1d73c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/315902 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Paul Berry <paulberry@google.com> Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
50 lines
1.3 KiB
Plaintext
50 lines
1.3 KiB
Plaintext
library;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
import "dart:_internal" as _in;
|
|
|
|
static method sideEffect<T extends core::Object? = dynamic>(core::List<self::sideEffect::T%> list) → core::List<self::sideEffect::T%> {
|
|
core::print(self::sideEffect::T%);
|
|
return list;
|
|
}
|
|
static method method() → dynamic {
|
|
{
|
|
final synthesized core::List<dynamic> #0#0 = self::sideEffect<dynamic>(<dynamic>[]);
|
|
if(!true)
|
|
throw new core::StateError::•("Pattern matching error");
|
|
}
|
|
{
|
|
final synthesized core::List<dynamic> #1#0 = self::sideEffect<dynamic>(<dynamic>[]);
|
|
if(!true)
|
|
throw new core::StateError::•("Pattern matching error");
|
|
}
|
|
{
|
|
final synthesized core::List<dynamic> #2#0 = self::sideEffect<dynamic>(<dynamic>[]);
|
|
if(true) {
|
|
core::print(true);
|
|
}
|
|
}
|
|
#L1:
|
|
{
|
|
final synthesized core::List<dynamic> #3#0 = self::sideEffect<dynamic>(<dynamic>[]);
|
|
{
|
|
if(true) {
|
|
}
|
|
}
|
|
}
|
|
return block {
|
|
core::bool #t1;
|
|
final synthesized core::List<dynamic> #4#0 = self::sideEffect<dynamic>(<dynamic>[]);
|
|
#L2:
|
|
{
|
|
{
|
|
if(true) {
|
|
#t1 = true;
|
|
break #L2;
|
|
}
|
|
}
|
|
throw new _in::ReachabilityError::•("`null` encountered as case in a switch expression with a non-nullable type.");
|
|
}
|
|
} =>#t1;
|
|
}
|