Files
sdk/pkg/front_end/testcases/patterns/switchExpression_onePattern_guarded.dart.strong.expect
T
Johnni Winther 36641368bb [cfe] Treat NonNullableByDefault as default in ast-to-text
This changes ast-to-text to mark legacy libraries instead of
non-nullable-by-default libraries.

TEST=existing

Change-Id: Ib01147e4ef48c2c5b2ffc6b23547998344dfdf2e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/307121
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2023-06-08 06:28:50 +00:00

27 lines
632 B
Plaintext

library;
//
// Problems in library:
//
// pkg/front_end/testcases/patterns/switchExpression_onePattern_guarded.dart:5:16: Error: The type 'dynamic' is not exhaustively matched by the switch cases since it doesn't match 'Object()'.
// Try adding a wildcard pattern or cases that match 'Object()'.
// f(x) => switch(x) {
// ^
//
import self as self;
import "dart:core" as core;
static method f(dynamic x) → dynamic
return block {
core::int #t1;
final synthesized dynamic #0#0 = x;
#L1:
{
{
if(true && true) {
#t1 = 0;
break #L1;
}
}
}
} =>#t1;