Fix test_mixinInference_noMatchingClass_namedMixinApplication_new_syntax
It turns out that with the new mixin syntax, we always check for error
MIXIN_APPLICATION_NOT_IMPLEMENTED_INTERFACE first, and if it is found,
we don't even bother checking for MIXIN_INFERENCE_NO_MATCHING_CLASS
(which I think is reasonable). So the expectations on this test need
to be changed.
Change-Id: I2a33ce60a928af63f4fc83b4e3a8309a2660b441
Reviewed-on: https://dart-review.googlesource.com/75990
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
diff --git a/pkg/analyzer/test/generated/compile_time_error_code_driver_test.dart b/pkg/analyzer/test/generated/compile_time_error_code_driver_test.dart
index e470236..248b5db 100644
--- a/pkg/analyzer/test/generated/compile_time_error_code_driver_test.dart
+++ b/pkg/analyzer/test/generated/compile_time_error_code_driver_test.dart
@@ -55,13 +55,6 @@
@override
@failingTest
- test_mixinInference_noMatchingClass_namedMixinApplication_new_syntax() {
- return super
- .test_mixinInference_noMatchingClass_namedMixinApplication_new_syntax();
- }
-
- @override
- @failingTest
test_mixinInference_noMatchingClass_typeParametersSupplied() {
return super.test_mixinInference_noMatchingClass_typeParametersSupplied();
}
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 c0cc727..724f3b8 100644
--- a/pkg/analyzer/test/generated/compile_time_error_code_test.dart
+++ b/pkg/analyzer/test/generated/compile_time_error_code_test.dart
@@ -64,13 +64,6 @@
@override
@failingTest
- test_mixinInference_noMatchingClass_namedMixinApplication_new_syntax() {
- return super
- .test_mixinInference_noMatchingClass_namedMixinApplication_new_syntax();
- }
-
- @override
- @failingTest
test_mixinInference_noMatchingClass_typeParametersSupplied() {
return super.test_mixinInference_noMatchingClass_typeParametersSupplied();
}
@@ -3956,8 +3949,8 @@
class C = Object with M;
''');
await computeAnalysisResult(source);
- assertErrors(
- source, [CompileTimeErrorCode.MIXIN_INFERENCE_NO_MATCHING_CLASS]);
+ assertErrors(source,
+ [CompileTimeErrorCode.MIXIN_APPLICATION_NOT_IMPLEMENTED_INTERFACE]);
}
test_mixinInference_noMatchingClass_new_syntax() async {