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

Unified Diff: pkg/analyzer/test/source/error_processor_test.dart

Issue 1780783002: Don't report redundant type errors in strong mode. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Stop type propagation in test. Created 4 years, 9 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/strong/info.dart ('k') | pkg/analyzer/test/src/context/mock_sdk.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/source/error_processor_test.dart
diff --git a/pkg/analyzer/test/source/error_processor_test.dart b/pkg/analyzer/test/source/error_processor_test.dart
index 968d6195f77ef1fc5c3e6a20a24425f83f9039c4..864bbf84f57115c85c250dbae2af06195f8e8ed4 100644
--- a/pkg/analyzer/test/source/error_processor_test.dart
+++ b/pkg/analyzer/test/source/error_processor_test.dart
@@ -45,7 +45,7 @@ main() {
context = new TestContext();
});
- group('ErrorProcessorTest', () {
+ group('ErrorProcessor', () {
test('configureOptions', () {
configureOptions('''
analyzer:
@@ -60,9 +60,17 @@ analyzer:
expect(getProcessor(unused_local_variable), isNull);
expect(getProcessor(use_of_void_result), isNull);
});
+
+ test('upgrades static type warnings to errors in strong mode', () {
+ configureOptions('''
+analyzer:
+ strong-mode: true
+''');
+ expect(getProcessor(invalid_assignment).severity, ErrorSeverity.ERROR);
+ });
});
- group('ErrorConfigTest', () {
+ group('ErrorConfig', () {
var config = '''
analyzer:
errors:
« no previous file with comments | « pkg/analyzer/lib/src/task/strong/info.dart ('k') | pkg/analyzer/test/src/context/mock_sdk.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698