| 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 13abb033c61f3ade9cce1eca22d910bf5a05c31b..ae908e0432908a1d1aa75f2a3a21bc7f870db2d5 100644
|
| --- a/pkg/analyzer/test/generated/non_hint_code_test.dart
|
| +++ b/pkg/analyzer/test/generated/non_hint_code_test.dart
|
| @@ -155,6 +155,26 @@ f() {
|
| verify([source]);
|
| }
|
|
|
| + void test_deadCode_deadFinalBreakInCase() {
|
| + Source source = addSource(r'''
|
| +f() {
|
| + switch (true) {
|
| + case true:
|
| + try {
|
| + int a = 1;
|
| + } finally {
|
| + return;
|
| + }
|
| + break;
|
| + default:
|
| + break;
|
| + }
|
| +}''');
|
| + computeLibrarySourceErrors(source);
|
| + assertNoErrors(source);
|
| + verify([source]);
|
| + }
|
| +
|
| void test_deadCode_deadOperandLHS_and_debugConst() {
|
| Source source = addSource(r'''
|
| const bool DEBUG = false;
|
| @@ -190,26 +210,6 @@ f() {
|
| verify([source]);
|
| }
|
|
|
| - void test_deadCode_deadFinalBreakInCase() {
|
| - Source source = addSource(r'''
|
| -f() {
|
| - switch (true) {
|
| - case true:
|
| - try {
|
| - int a = 1;
|
| - } finally {
|
| - return;
|
| - }
|
| - break;
|
| - default:
|
| - break;
|
| - }
|
| -}''');
|
| - computeLibrarySourceErrors(source);
|
| - assertNoErrors(source);
|
| - verify([source]);
|
| - }
|
| -
|
| void test_deprecatedMemberUse_inDeprecatedClass() {
|
| Source source = addSource(r'''
|
| @deprecated
|
| @@ -486,6 +486,38 @@ class A {
|
| verify([source]);
|
| }
|
|
|
| + void test_overrideOnNonOverridingGetter_field_inInterface() {
|
| + Source source = addSource(r'''
|
| +library dart.core;
|
| +const override = null;
|
| +class A {
|
| + int get m => 0;
|
| +}
|
| +class B implements A {
|
| + @override
|
| + final int m = 1;
|
| +}''');
|
| + computeLibrarySourceErrors(source);
|
| + assertNoErrors(source);
|
| + verify([source]);
|
| + }
|
| +
|
| + void test_overrideOnNonOverridingGetter_field_inSuperclass() {
|
| + Source source = addSource(r'''
|
| +library dart.core;
|
| +const override = null;
|
| +class A {
|
| + int get m => 0;
|
| +}
|
| +class B extends A {
|
| + @override
|
| + final int m = 1;
|
| +}''');
|
| + computeLibrarySourceErrors(source);
|
| + assertNoErrors(source);
|
| + verify([source]);
|
| + }
|
| +
|
| void test_overrideOnNonOverridingGetter_inInterface() {
|
| Source source = addSource(r'''
|
| library dart.core;
|
|
|