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

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

Issue 1131383008: Generate the proper error when a constant refers to itself. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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 a7e582b1271ac4160ca0a5b6e1245ffd8a995966..aff479b2bdedd620a4b9555893a8e22cd310e197 100644
--- a/pkg/analyzer/test/src/task/dart_test.dart
+++ b/pkg/analyzer/test/src/task/dart_test.dart
@@ -1312,11 +1312,6 @@ class ComputeConstantValueTaskTest extends _AbstractDartTaskTest {
return null;
}
- fail_circular_reference_one_element() {
- // See dartbug.com/23490.
- _checkCircularities('x', [], 'const x = x;');
- }
-
test_annotation_with_args() {
Source source = newSource('/test.dart', '''
const x = 1;
@@ -1369,6 +1364,11 @@ const y = x + 1;
''');
}
+ test_circular_reference_one_element() {
+ // See dartbug.com/23490.
+ _checkCircularities('x', [], 'const x = x;');
+ }
+
test_circular_reference_strongly_connected_component() {
// When there is a circularity, all elements in the strongly connected
// component should be marked as having an error.
« no previous file with comments | « pkg/analyzer/test/generated/compile_time_error_code_test.dart ('k') | pkg/analyzer/test/src/task/driver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698