| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library analyzer.test.generated.static_warning_code_test; | 5 library analyzer.test.generated.static_warning_code_test; |
| 6 | 6 |
| 7 import 'package:analyzer/error/error.dart'; | 7 import 'package:analyzer/error/error.dart'; |
| 8 import 'package:analyzer/src/error/codes.dart'; | 8 import 'package:analyzer/src/error/codes.dart'; |
| 9 import 'package:analyzer/src/generated/engine.dart'; | 9 import 'package:analyzer/src/generated/engine.dart'; |
| 10 import 'package:analyzer/src/generated/source_io.dart'; | 10 import 'package:analyzer/src/generated/source_io.dart'; |
| (...skipping 2837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2848 class C implements I { | 2848 class C implements I { |
| 2849 }'''); | 2849 }'''); |
| 2850 await computeAnalysisResult(source); | 2850 await computeAnalysisResult(source); |
| 2851 assertErrors(source, | 2851 assertErrors(source, |
| 2852 [StaticWarningCode.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO]); | 2852 [StaticWarningCode.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO]); |
| 2853 verify([source]); | 2853 verify([source]); |
| 2854 } | 2854 } |
| 2855 | 2855 |
| 2856 test_nonAbstractClassInheritsAbstractMemberTwo_variable_fromMixin_missingBoth(
) async { | 2856 test_nonAbstractClassInheritsAbstractMemberTwo_variable_fromMixin_missingBoth(
) async { |
| 2857 // 26411 | 2857 // 26411 |
| 2858 resetWithOptions(new AnalysisOptionsImpl()..enableSuperMixins = true); | 2858 resetWith(options: new AnalysisOptionsImpl()..enableSuperMixins = true); |
| 2859 Source source = addSource(r''' | 2859 Source source = addSource(r''' |
| 2860 class A { | 2860 class A { |
| 2861 int f; | 2861 int f; |
| 2862 } | 2862 } |
| 2863 class B extends A {} | 2863 class B extends A {} |
| 2864 class C extends Object with B {} | 2864 class C extends Object with B {} |
| 2865 '''); | 2865 '''); |
| 2866 await computeAnalysisResult(source); | 2866 await computeAnalysisResult(source); |
| 2867 assertErrors(source, | 2867 assertErrors(source, |
| 2868 [StaticWarningCode.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO]); | 2868 [StaticWarningCode.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO]); |
| (...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3706 | 3706 |
| 3707 test_voidReturnForGetter() async { | 3707 test_voidReturnForGetter() async { |
| 3708 Source source = addSource(r''' | 3708 Source source = addSource(r''' |
| 3709 class S { | 3709 class S { |
| 3710 void get value {} | 3710 void get value {} |
| 3711 }'''); | 3711 }'''); |
| 3712 await computeAnalysisResult(source); | 3712 await computeAnalysisResult(source); |
| 3713 assertErrors(source, [StaticWarningCode.VOID_RETURN_FOR_GETTER]); | 3713 assertErrors(source, [StaticWarningCode.VOID_RETURN_FOR_GETTER]); |
| 3714 } | 3714 } |
| 3715 } | 3715 } |
| OLD | NEW |