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

Unified Diff: tests/language/regress_23038_test.dart

Issue 1042963002: Avoid infinite loop if const constructor redirects don't reach a fixed point. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add missing copyright notice. Created 5 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 | « tests/language/language_analyzer.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/regress_23038_test.dart
diff --git a/tests/compiler/dart2js/dart2js_batch2_run.dart b/tests/language/regress_23038_test.dart
similarity index 64%
copy from tests/compiler/dart2js/dart2js_batch2_run.dart
copy to tests/language/regress_23038_test.dart
index aee55ef18e5fa77c47bcbf53f5c16125299ed77a..643ca7853d16ffd88d18613f6084de42772e8667 100644
--- a/tests/compiler/dart2js/dart2js_batch2_run.dart
+++ b/tests/language/regress_23038_test.dart
@@ -2,9 +2,14 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-@notExisting
-var x;
+class C<T> {
+ const
+ factory /// 01: compile-time error
+ C()
+ = C<C<T>> /// 01: continued
+ ;
+}
main() {
- print(x);
+ const C<int>();
}
« no previous file with comments | « tests/language/language_analyzer.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698