diff options
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/cycle-bounds.scala | 1 | ||||
-rw-r--r-- | test/files/pos/cycle-jsoup.flags | 1 | ||||
-rw-r--r-- | test/files/pos/cycle-jsoup.scala | 5 | ||||
-rw-r--r-- | test/files/pos/cycle.flags | 1 | ||||
-rw-r--r-- | test/files/pos/cycle/J_1.java | 16 | ||||
-rw-r--r-- | test/files/pos/cycle/X_2.scala | 3 |
6 files changed, 27 insertions, 0 deletions
diff --git a/test/files/pos/cycle-bounds.scala b/test/files/pos/cycle-bounds.scala new file mode 100644 index 0000000000..0aa7aa552b --- /dev/null +++ b/test/files/pos/cycle-bounds.scala @@ -0,0 +1 @@ +class Foo[T <: Comparable[_ >: T]] diff --git a/test/files/pos/cycle-jsoup.flags b/test/files/pos/cycle-jsoup.flags new file mode 100644 index 0000000000..ca20f55172 --- /dev/null +++ b/test/files/pos/cycle-jsoup.flags @@ -0,0 +1 @@ +-Ybreak-cycles diff --git a/test/files/pos/cycle-jsoup.scala b/test/files/pos/cycle-jsoup.scala new file mode 100644 index 0000000000..879e693537 --- /dev/null +++ b/test/files/pos/cycle-jsoup.scala @@ -0,0 +1,5 @@ +object Test { + def main(args : Array[String]) { + org.jsoup.Jsoup.parse(null: java.net.URL, 3000) + } +} diff --git a/test/files/pos/cycle.flags b/test/files/pos/cycle.flags new file mode 100644 index 0000000000..ca20f55172 --- /dev/null +++ b/test/files/pos/cycle.flags @@ -0,0 +1 @@ +-Ybreak-cycles diff --git a/test/files/pos/cycle/J_1.java b/test/files/pos/cycle/J_1.java new file mode 100644 index 0000000000..0cc218eebe --- /dev/null +++ b/test/files/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/test/files/pos/cycle/X_2.scala b/test/files/pos/cycle/X_2.scala new file mode 100644 index 0000000000..c1840f3b99 --- /dev/null +++ b/test/files/pos/cycle/X_2.scala @@ -0,0 +1,3 @@ +import bar.J_1._ //<--- illegal cyclic reference involving + +class X |