diff options
author | Paul Phillips <paulp@improving.org> | 2012-11-15 07:27:45 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-11-15 07:27:45 -0800 |
commit | bc60605e182d526e4224c804d218e9a0e2952b72 (patch) | |
tree | e1789721cc30309f0ad0dde9f4d8d045cf5c4fc0 /test | |
parent | bdab9cd5456203284658c1fbd492dc184126b3d1 (diff) | |
parent | 24958f7a8b1748be0c462b4563e652c9f7e24d6a (diff) | |
download | scala-bc60605e182d526e4224c804d218e9a0e2952b72.tar.gz scala-bc60605e182d526e4224c804d218e9a0e2952b72.tar.bz2 scala-bc60605e182d526e4224c804d218e9a0e2952b72.zip |
Merge pull request #1627 from paulp/issue/6664
Fix for SI-6664, cycle in case classes.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/pos/t6664.scala | 4 | ||||
-rw-r--r-- | test/files/pos/t6664b.scala | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test/files/pos/t6664.scala b/test/files/pos/t6664.scala new file mode 100644 index 0000000000..7eb85f619d --- /dev/null +++ b/test/files/pos/t6664.scala @@ -0,0 +1,4 @@ +final case class A(i: Int, s: String) { + protected def copy(s2: String): A = A(i, s2) + protected def copy(i2: Int): A = A(i2, s) +} diff --git a/test/files/pos/t6664b.scala b/test/files/pos/t6664b.scala new file mode 100644 index 0000000000..a622866838 --- /dev/null +++ b/test/files/pos/t6664b.scala @@ -0,0 +1,5 @@ +object T { + def A(s: String): A = new A(3, s) + def A(i: Int): A = A(i, "abc") + case class A(i: Int, s: String) +} |