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

Unified Diff: pkg/fasta/test/cycles.dart

Issue 2631613003: Add Fasta tests. (Closed)
Patch Set: Address review comments. Created 3 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 | « pkg/fasta/test/compile_test.dart ('k') | pkg/fasta/test/cycles.dart.dartk.expect » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/fasta/test/cycles.dart
diff --git a/pkg/fasta/test/cycles.dart b/pkg/fasta/test/cycles.dart
new file mode 100644
index 0000000000000000000000000000000000000000..977faff54bcc32f39bb6abd828671a1c9120ed87
--- /dev/null
+++ b/pkg/fasta/test/cycles.dart
@@ -0,0 +1,22 @@
+// Copyright (c) 2016, 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.
+
+class A implements C {
+}
+
+class B extends A {
+}
+
+class C extends B implements D {
+}
+
+class D {
+}
+
+main() {
+ print(new A());
+ print(new B());
+ print(new C());
+ print(new D());
+}
« no previous file with comments | « pkg/fasta/test/compile_test.dart ('k') | pkg/fasta/test/cycles.dart.dartk.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698