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

Unified Diff: tests/language/interface_cycle_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 | « tests/language/interface_cycle_negative_test.dart ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/interface_cycle_test.dart
diff --git a/tests/language/interface_cycle_negative_test.dart b/tests/language/interface_cycle_test.dart
similarity index 58%
rename from tests/language/interface_cycle_negative_test.dart
rename to tests/language/interface_cycle_test.dart
index f8e268b772d3a67080486c5662f84d7f1d4e4612..db57fd1ef3c66cdf1934ca2d50c5a41989473fdc 100644
--- a/tests/language/interface_cycle_negative_test.dart
+++ b/tests/language/interface_cycle_test.dart
@@ -3,23 +3,16 @@
// BSD-style license that can be found in the LICENSE file.
// Check fail because of cycles in super interface relationship.
-abstract class C implements B {
+class C implements B {}
-}
-
-abstract class A implements B {
-
-}
+class A implements B {}
-abstract class B implements A {
-
-}
-
-class InterfaceCycleNegativeTest {
- static testMain() {
- }
-}
+class B
+ implements A /// 01: compile-time error
+ implements A /// 02: compile-time error
+{}
main() {
- InterfaceCycleNegativeTest.testMain();
+ new C(); /// 01: continued
+ new List<C>(); /// 02: continued
}
« no previous file with comments | « tests/language/interface_cycle_negative_test.dart ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698