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

Unified Diff: tests/language/mixin_implements2_test.dart

Issue 14532005: Check for cyclicity in named mixin applications. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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/mixin_cyclic_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/mixin_implements2_test.dart
diff --git a/samples/tests/samples/standalone/time_test.dart b/tests/language/mixin_implements2_test.dart
similarity index 60%
copy from samples/tests/samples/standalone/time_test.dart
copy to tests/language/mixin_implements2_test.dart
index 32a8726ccaba707e59d14c9eb5589b446682c6d3..3fc284d6e4a2d518687782b125f8dcc371352956 100644
--- a/samples/tests/samples/standalone/time_test.dart
+++ b/tests/language/mixin_implements2_test.dart
@@ -2,13 +2,15 @@
// 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.
-import '../../../time/time_server.dart' as time;
+// Regression test for named mixin applications with implements clause.
-// @static-clean
+class A {}
-/**
- * This test exists to ensure that the time sample compiles without errors.
- */
-void main() {
+class S {}
+class M {}
+
+typedef C = S with M implements A;
+void main() {
+ new C();
}
« no previous file with comments | « tests/language/mixin_cyclic_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698