Skip to content

Commit

Permalink
Remove unreachable default clauses from world_test.dart.
Browse files Browse the repository at this point in the history
I'm currently working on a fix to the analyzer that will cause
unreachable default clauses to be properly flagged as a warning
(#54575). To avoid a bot
failure when the fix lands, these unreachable default clauses need to
be removed.

Bug: #54575
Change-Id: I35cc2be79d918a8f6ee7b388cf97044f0196b932
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/380961
Commit-Queue: Paul Berry <[email protected]>
Reviewed-by: Nate Biggs <[email protected]>
Auto-Submit: Paul Berry <[email protected]>
  • Loading branch information
stereotype441 authored and Commit Queue committed Aug 16, 2024
1 parent 354084c commit 24a4bf3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/compiler/test/model/world_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,6 @@ testCommonSubclasses() async {
case SimpleSubclassResult.subtype2:
return ClassQuery.SUBTYPE;
case SetSubclassResult():
default:
return null;
}
}
Expand All @@ -610,7 +609,6 @@ testCommonSubclasses() async {
case SimpleSubclassResult.subtype2:
return cls2;
case SetSubclassResult():
default:
return null;
}
}
Expand Down

0 comments on commit 24a4bf3

Please sign in to comment.