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

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

Issue 2933753002: Run the sorter to reduce code churn (Closed)
Patch Set: Created 3 years, 6 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
Index: pkg/analyzer/test/generated/compile_time_error_code_test.dart
diff --git a/pkg/analyzer/test/generated/compile_time_error_code_test.dart b/pkg/analyzer/test/generated/compile_time_error_code_test.dart
index 5889c8f1bb81bca0c4f5001170715433df35ff19..7876d9da7f1dd5bfebbaecd20540bebab158a2f8 100644
--- a/pkg/analyzer/test/generated/compile_time_error_code_test.dart
+++ b/pkg/analyzer/test/generated/compile_time_error_code_test.dart
@@ -2782,21 +2782,21 @@ class B extends A implements A {}''');
verify([source]);
}
- test_implementsSuperClass_typeAlias() async {
+ test_implementsSuperClass_Object_typeAlias() async {
Source source = addSource(r'''
-class A {}
class M {}
-class B = A with M implements A;''');
+class A = Object with M implements Object;
+ ''');
await computeAnalysisResult(source);
assertErrors(source, [CompileTimeErrorCode.IMPLEMENTS_SUPER_CLASS]);
verify([source]);
}
- test_implementsSuperClass_Object_typeAlias() async {
+ test_implementsSuperClass_typeAlias() async {
Source source = addSource(r'''
+class A {}
class M {}
-class A = Object with M implements Object;
- ''');
+class B = A with M implements A;''');
await computeAnalysisResult(source);
assertErrors(source, [CompileTimeErrorCode.IMPLEMENTS_SUPER_CLASS]);
verify([source]);
@@ -5357,61 +5357,61 @@ f() {
verify([source]);
}
- test_privateCollisionInMixinApplication_mixinAndMixin() {
+ test_privateCollisionInClassTypeAlias_mixinAndMixin() {
return _privateCollisionInMixinApplicationTest('''
import 'lib1.dart';
-class C extends Object with A, B {}
+class C = Object with A, B;
''');
}
- test_privateCollisionInMixinApplication_mixinAndMixin_indirect() {
+ test_privateCollisionInClassTypeAlias_mixinAndMixin_indirect() {
return _privateCollisionInMixinApplicationTest('''
import 'lib1.dart';
-class C extends Object with A {}
-class D extends C with B {}
+class C = Object with A;
+class D = C with B;
''');
}
- test_privateCollisionInMixinApplication_superclassAndMixin() {
+ test_privateCollisionInClassTypeAlias_superclassAndMixin() {
return _privateCollisionInMixinApplicationTest('''
import 'lib1.dart';
-class C extends A with B {}
+class C = A with B;
''');
}
- test_privateCollisionInMixinApplication_superclassAndMixin_same() {
+ test_privateCollisionInClassTypeAlias_superclassAndMixin_same() {
return _privateCollisionInMixinApplicationTest('''
import 'lib1.dart';
-class C extends A with A {}
+class C = A with A;
''');
}
- test_privateCollisionInClassTypeAlias_mixinAndMixin() {
+ test_privateCollisionInMixinApplication_mixinAndMixin() {
return _privateCollisionInMixinApplicationTest('''
import 'lib1.dart';
-class C = Object with A, B;
+class C extends Object with A, B {}
''');
}
- test_privateCollisionInClassTypeAlias_mixinAndMixin_indirect() {
+ test_privateCollisionInMixinApplication_mixinAndMixin_indirect() {
return _privateCollisionInMixinApplicationTest('''
import 'lib1.dart';
-class C = Object with A;
-class D = C with B;
+class C extends Object with A {}
+class D extends C with B {}
''');
}
- test_privateCollisionInClassTypeAlias_superclassAndMixin() {
+ test_privateCollisionInMixinApplication_superclassAndMixin() {
return _privateCollisionInMixinApplicationTest('''
import 'lib1.dart';
-class C = A with B;
+class C extends A with B {}
''');
}
- test_privateCollisionInClassTypeAlias_superclassAndMixin_same() {
+ test_privateCollisionInMixinApplication_superclassAndMixin_same() {
return _privateCollisionInMixinApplicationTest('''
import 'lib1.dart';
-class C = A with A;
+class C extends A with A {}
''');
}
« no previous file with comments | « pkg/analyzer/lib/src/task/strong/checker.dart ('k') | pkg/analyzer/test/generated/error_suppression_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698