diff options
author | James Iry <jamesiry@gmail.com> | 2013-02-07 21:32:54 -0800 |
---|---|---|
committer | James Iry <jamesiry@gmail.com> | 2013-02-07 21:32:54 -0800 |
commit | 20b92e050365b8086a2ff368ef3e31f3a56c872c (patch) | |
tree | 710eb2dd92035a9a7349ae4165e3f37428d68a96 /test | |
parent | bbac0c06020db47dc46e3df7eb083b4f9f70a260 (diff) | |
parent | a0ee6e996e602bf5729687d7301f60b340d57061 (diff) | |
download | scala-20b92e050365b8086a2ff368ef3e31f3a56c872c.tar.gz scala-20b92e050365b8086a2ff368ef3e31f3a56c872c.tar.bz2 scala-20b92e050365b8086a2ff368ef3e31f3a56c872c.zip |
Merge pull request #1995 from retronym/ticket/5082
SI-5082 Cycle avoidance between case companions
Diffstat (limited to 'test')
-rw-r--r-- | test/files/pos/t5082.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/pos/t5082.scala b/test/files/pos/t5082.scala new file mode 100644 index 0000000000..63eeda38ba --- /dev/null +++ b/test/files/pos/t5082.scala @@ -0,0 +1,14 @@ +trait Something[T] +object Test { class A } +case class Test() extends Something[Test.A] + +object User { + val Test() = Test() +} + +object Wrap { + trait Something[T] + object Test { class A } + case class Test(a: Int, b: Int)(c: String) extends Something[Test.A] + val Test(x, y) = Test(1, 2)(""); (x + y).toString +} |