aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/cycle
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/cycle')
-rw-r--r--tests/untried/pos/cycle/J_1.java16
-rw-r--r--tests/untried/pos/cycle/X_2.scala3
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/untried/pos/cycle/J_1.java b/tests/untried/pos/cycle/J_1.java
new file mode 100644
index 000000000..0cc218eeb
--- /dev/null
+++ b/tests/untried/pos/cycle/J_1.java
@@ -0,0 +1,16 @@
+package bar;
+
+public class J_1 {
+ public void f(C.D arg) {
+ }
+}
+
+class B extends J_1 {
+ public void g(C.D arg) {
+ }
+}
+
+class C extends B {
+ public class D {
+ }
+}
diff --git a/tests/untried/pos/cycle/X_2.scala b/tests/untried/pos/cycle/X_2.scala
new file mode 100644
index 000000000..c1840f3b9
--- /dev/null
+++ b/tests/untried/pos/cycle/X_2.scala
@@ -0,0 +1,3 @@
+import bar.J_1._ //<--- illegal cyclic reference involving
+
+class X