Index: pkg/analyzer/test/generated/non_hint_code_test.dart |
diff --git a/pkg/analyzer/test/generated/non_hint_code_test.dart b/pkg/analyzer/test/generated/non_hint_code_test.dart |
index 226f5e50b096b39280f2b9f6349dcbfcd5c96b22..74760a506a11e9bc981e787303638b6ba0c818d7 100644 |
--- a/pkg/analyzer/test/generated/non_hint_code_test.dart |
+++ b/pkg/analyzer/test/generated/non_hint_code_test.dart |
@@ -18,6 +18,25 @@ main() { |
@reflectiveTest |
class NonHintCodeTest extends ResolverTestCase { |
+ void test_deadCode_afterTryCatch() { |
+ Source source = addSource(''' |
+main() { |
+ try { |
+ return f(); |
+ } catch (e) { |
+ print(e); |
+ } |
+ print('not dead'); |
+} |
+f() { |
+ throw 'foo'; |
+} |
+'''); |
+ computeLibrarySourceErrors(source); |
+ assertNoErrors(source); |
+ verify([source]); |
+ } |
+ |
void test_deadCode_deadBlock_conditionalElse_debugConst() { |
Source source = addSource(r''' |
const bool DEBUG = true; |