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

Unified Diff: tests/language/class_cycle2_test.dart

Issue 23537005: Update class and interface cycle tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Style change Created 7 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
« no previous file with comments | « no previous file | tests/language/class_cycle_negative_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/class_cycle2_test.dart
diff --git a/tests/language/class_cycle_negative_test.dart b/tests/language/class_cycle2_test.dart
similarity index 59%
rename from tests/language/class_cycle_negative_test.dart
rename to tests/language/class_cycle2_test.dart
index f54b9f853e788a722eb9604e9036a95bb1588873..5e352b3ffd4321eade888c132717ac0a1133bc00 100644
--- a/tests/language/class_cycle_negative_test.dart
+++ b/tests/language/class_cycle2_test.dart
@@ -3,22 +3,16 @@
// BSD-style license that can be found in the LICENSE file.
// Check fail because of cycles in super class relationship.
-class C extends B {
+class C extends B {}
-}
-
-class A extends B {
-
-}
+class A extends B {}
-class B extends A {
+class B
+ extends A /// 01: compile-time error
+ extends A /// 02: compile-time error
+{}
-}
-
-class ClassCycleNegativeTest {
- static testMain() {
- }
-}
main() {
- ClassCycleNegativeTest.testMain();
+ new C(); /// 01: continued
+ new List<C>(); /// 02: continued
}
« no previous file with comments | « no previous file | tests/language/class_cycle_negative_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698