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

Unified Diff: tests/language/class_cycle_test.dart

Issue 11829020: Report errors on repeated interfaces. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 7 years, 11 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/co19/co19-dart2js.status ('k') | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/class_cycle_test.dart
diff --git a/tests/language/class_cycle_test.dart b/tests/language/class_cycle_test.dart
index dd9717413a30b6d995e355233c30df0483720fe0..e75c5454974acee2aedcbcf2cde28842ca95b8eb 100644
--- a/tests/language/class_cycle_test.dart
+++ b/tests/language/class_cycle_test.dart
@@ -12,12 +12,20 @@ class C {
class Bar
extends Foo /// 00: compile-time error
implements Foo /// 01: compile-time error
- implements C, C /// 02: compile-time error
- extends C implements C /// 03: compile-time error
{
}
+class ImplementsC implements C
+, C /// 02: compile-time error
+{}
+
+class ExtendsC extends C
+implements C /// 03: compile-time error
+{}
+
main() {
Expect.isTrue(new Foo() is Foo);
+ Expect.isTrue(new ImplementsC() is C);
+ Expect.isTrue(new ExtendsC() is C);
}
« no previous file with comments | « tests/co19/co19-dart2js.status ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698