Files
sdk/pkg/front_end/testcases/patterns/never_pattern.dart.weak.expect
T
Johnni Winther 2836f56729 [cfe] Decouple MatchingCache and MatchingExpressionVisitor from inference
This moves the computation values need for the lowering to the
inference visitor and passes these to the lowering through fields on
the patterns.

This prepares for performing lowering during constant evaluation.

Change-Id: I71a63ac3fd911d9b0cfa5de00a6d28e3b9571a00
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/282600
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
2023-02-13 10:37:00 +00:00

18 lines
432 B
Plaintext

library /*isNonNullableByDefault*/;
import self as self;
import "dart:_internal" as _in;
import "dart:core" as core;
static method method(Never n) → dynamic {
#L1:
{
final Never #0#0 = let final Never #t1 = n in throw new _in::ReachabilityError::•("`null` encountered as the result from expression with type `Never`.");
if(#0#0 =={core::Object::==}{(dynamic) → Never} #C1) {
}
}
}
constants {
#C1 = 0
}