Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(333)

Unified Diff: pkg/analyzer/test/generated/hint_code_test.dart

Issue 2361393002: Revert "Issue 27300. Report HintCode.ABSTRACT_SUPER_MEMBER_REFERENCE." (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/task/dart.dart ('k') | pkg/analyzer/test/generated/non_error_resolver_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/hint_code_test.dart
diff --git a/pkg/analyzer/test/generated/hint_code_test.dart b/pkg/analyzer/test/generated/hint_code_test.dart
index bbec137c4009350bf467f15321661a831f2af7dd..0b37222a7e4c7595e07925c623187934496b6aeb 100644
--- a/pkg/analyzer/test/generated/hint_code_test.dart
+++ b/pkg/analyzer/test/generated/hint_code_test.dart
@@ -65,71 +65,6 @@ class JS {
});
}
- void test_abstractSuperMemberReference_getter() {
- Source source = addSource(r'''
-abstract class A {
- int get test;
-}
-class B extends A {
- int get test {
- super.test;
- return 0;
- }
-}
-''');
- computeLibrarySourceErrors(source);
- assertErrors(source, [HintCode.ABSTRACT_SUPER_MEMBER_REFERENCE]);
- verify([source]);
- }
-
- void test_abstractSuperMemberReference_method_invocation() {
- Source source = addSource(r'''
-abstract class A {
- void test();
-}
-class B extends A {
- void test() {
- super.test();
- }
-}
-''');
- computeLibrarySourceErrors(source);
- assertErrors(source, [HintCode.ABSTRACT_SUPER_MEMBER_REFERENCE]);
- verify([source]);
- }
-
- void test_abstractSuperMemberReference_method_reference() {
- Source source = addSource(r'''
-abstract class A {
- void test();
-}
-class B extends A {
- void test() {
- super.test;
- }
-}
-''');
- computeLibrarySourceErrors(source);
- assertErrors(source, [HintCode.ABSTRACT_SUPER_MEMBER_REFERENCE]);
- verify([source]);
- }
-
- void test_abstractSuperMemberReference_setter() {
- Source source = addSource(r'''
-abstract class A {
- void set test(int v);
-}
-class B extends A {
- void set test(int v){
- super.test = 0;
- }
-}
-''');
- computeLibrarySourceErrors(source);
- assertErrors(source, [HintCode.ABSTRACT_SUPER_MEMBER_REFERENCE]);
- verify([source]);
- }
-
void test_argumentTypeNotAssignable_functionType() {
Source source = addSource(r'''
m() {
« no previous file with comments | « pkg/analyzer/lib/src/task/dart.dart ('k') | pkg/analyzer/test/generated/non_error_resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698