diff options
author | Paul Phillips <paulp@improving.org> | 2012-09-10 09:40:03 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-10-09 14:17:34 -0700 |
commit | 432f9368011e0fd9e89ca0e18082bfec180baf32 (patch) | |
tree | 155dfa5932b5049ba80063c5a7758cf9c0305f0c /test/pending | |
parent | c61c18e042d0fa41a09fea29a8dcaa2e08a40a63 (diff) | |
download | scala-432f9368011e0fd9e89ca0e18082bfec180baf32.tar.gz scala-432f9368011e0fd9e89ca0e18082bfec180baf32.tar.bz2 scala-432f9368011e0fd9e89ca0e18082bfec180baf32.zip |
Experimental option -Ybreak-cycles.
Overcomes cycles encountered during classfile parsing
in possibly sketchy fashion.
"illegal cyclic reference involving class Foo"
is the watchword. See SI-3809.
Diffstat (limited to 'test/pending')
-rw-r--r-- | test/pending/pos/t4612.scala | 15 | ||||
-rw-r--r-- | test/pending/pos/t4744/Bar.scala | 1 | ||||
-rw-r--r-- | test/pending/pos/t4744/Foo.java | 1 | ||||
-rw-r--r-- | test/pending/pos/t5082.scala | 8 |
4 files changed, 25 insertions, 0 deletions
diff --git a/test/pending/pos/t4612.scala b/test/pending/pos/t4612.scala new file mode 100644 index 0000000000..a93c12ef01 --- /dev/null +++ b/test/pending/pos/t4612.scala @@ -0,0 +1,15 @@ +class CyclicReferenceCompilerBug { + trait Trait[A] { + def foo: A + } + + class Class extends Trait[Class] { + def foo = new Class + + trait OtherTrait extends Trait[OtherTrait] { + self: Class => + + def foo = new Class + } + } +} diff --git a/test/pending/pos/t4744/Bar.scala b/test/pending/pos/t4744/Bar.scala new file mode 100644 index 0000000000..1fb6d78973 --- /dev/null +++ b/test/pending/pos/t4744/Bar.scala @@ -0,0 +1 @@ +class Bar { val quux = new Foo[java.lang.Integer]() } diff --git a/test/pending/pos/t4744/Foo.java b/test/pending/pos/t4744/Foo.java new file mode 100644 index 0000000000..6c764d0470 --- /dev/null +++ b/test/pending/pos/t4744/Foo.java @@ -0,0 +1 @@ +public class Foo<T extends Comparable<? super T>> {} diff --git a/test/pending/pos/t5082.scala b/test/pending/pos/t5082.scala new file mode 100644 index 0000000000..20a6cfc55f --- /dev/null +++ b/test/pending/pos/t5082.scala @@ -0,0 +1,8 @@ +object Test { + sealed trait A + case object A1 extends A +} + +trait Something[T] + +case class Test() extends Something[Test.A] |