summaryrefslogtreecommitdiff
path: root/test/files/pos
diff options
context:
space:
mode:
authorJames Iry <jamesiry@gmail.com>2013-02-07 21:32:54 -0800
committerJames Iry <jamesiry@gmail.com>2013-02-07 21:32:54 -0800
commit20b92e050365b8086a2ff368ef3e31f3a56c872c (patch)
tree710eb2dd92035a9a7349ae4165e3f37428d68a96 /test/files/pos
parentbbac0c06020db47dc46e3df7eb083b4f9f70a260 (diff)
parenta0ee6e996e602bf5729687d7301f60b340d57061 (diff)
downloadscala-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/files/pos')
-rw-r--r--test/files/pos/t5082.scala14
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
+}