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

Unified Diff: pkg/analyzer/test/src/task/dart_test.dart

Issue 2288983002: Move error checking from scope creation to error reporter (Closed)
Patch Set: Created 4 years, 4 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/src/task/dart_test.dart
diff --git a/pkg/analyzer/test/src/task/dart_test.dart b/pkg/analyzer/test/src/task/dart_test.dart
index c01223cff632f6699c954acd8493150c1a931e62..7e861e8a0ae980750b2ef266b726c54b83787ce1 100644
--- a/pkg/analyzer/test/src/task/dart_test.dart
+++ b/pkg/analyzer/test/src/task/dart_test.dart
@@ -5668,7 +5668,8 @@ main() {
computeResult(target, VERIFY_ERRORS, matcher: isVerifyUnitTask);
// validate
_fillErrorListener(VERIFY_ERRORS);
- errorListener.assertNoErrors();
+ errorListener
+ .assertErrorsWithCodes([CompileTimeErrorCode.DUPLICATE_DEFINITION]);
}
test_perform_ConstantValidator_noInitializer() {

Powered by Google App Engine
This is Rietveld 408576698