Files
sdk/pkg/front_end/testcases/fallthrough.dart.strong.expect
T
Peter von der Ahé 874710bdf3 Add missing expectation files
Change-Id: I5c87f431bae49471908a96fbbfe8b1f4d3098c6b
Reviewed-on: https://dart-review.googlesource.com/c/81822
Commit-Queue: Peter von der Ahé <ahe@google.com>
Auto-Submit: Peter von der Ahé <ahe@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2018-10-29 13:58:59 +00:00

59 lines
1.3 KiB
Plaintext

// Formatted problems:
//
// pkg/front_end/testcases/fallthrough.dart:8:5: Error: Switch case may fall through to the next case.
// case 3:
// ^
//
// pkg/front_end/testcases/fallthrough.dart:12:5: Error: Switch case may fall through to the next case.
// case 6:
// ^
// Unhandled errors:
//
// pkg/front_end/testcases/fallthrough.dart:8:5: Error: Switch case may fall through to the next case.
// case 3:
// ^
//
// pkg/front_end/testcases/fallthrough.dart:12:5: Error: Switch case may fall through to the next case.
// case 6:
// ^
library;
import self as self;
import "dart:core" as core;
static method main(core::List<core::String> args) → void {
core::int x = args.{core::List::length};
#L1:
switch(x) {
#L2:
case 3:
{
x = 4;
throw new core::FallThroughError::_create("org-dartlang-testcase:///fallthrough.dart", 8);
}
#L3:
case 5:
{
break #L1;
}
#L4:
case 6:
case 7:
{
if(args.{core::List::[]}(0).{core::String::==}("")) {
break #L1;
}
else {
return;
}
throw new core::FallThroughError::_create("org-dartlang-testcase:///fallthrough.dart", 12);
}
#L5:
case 4:
{
break #L1;
}
}
}