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/pos/t4612.scala | |
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/pos/t4612.scala')
-rw-r--r-- | test/pending/pos/t4612.scala | 15 |
1 files changed, 15 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 + } + } +} |