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

Unified Diff: dart/tests/language/cyclic_class_member_test.dart

Issue 15911008: Set the supertype to avoid loop. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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 | « dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/language/cyclic_class_member_test.dart
diff --git a/dart/tests/language/dynamic2_test.dart b/dart/tests/language/cyclic_class_member_test.dart
similarity index 50%
copy from dart/tests/language/dynamic2_test.dart
copy to dart/tests/language/cyclic_class_member_test.dart
index 82c9074c5caaed8e0bcc213834a22671cb380513..63c9651c90ccc8b3bf1271832fffb91836c68e8f 100644
--- a/dart/tests/language/dynamic2_test.dart
+++ b/dart/tests/language/cyclic_class_member_test.dart
@@ -1,13 +1,15 @@
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// 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.
-//
-// Test the prohibited use of 'dynamic' in extending and implementing classes.
+
+// Test that class with a cyclic hierarchy doesn't cause a loop in dart2js.
class A
- extends dynamic /// 00: compile-time error
- implements dynamic /// 01: compile-time error
+ extends A /// 01: compile-time error
{
+ // When checking that foo isn't overriding an instance method in the
+ // superclass, dart2js might loop.
+ static foo() {}
}
main() {
« no previous file with comments | « dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698