summaryrefslogtreecommitdiff
path: root/test/files/neg/t5956.scala
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@epfl.ch>2012-07-13 12:31:14 +0200
committerLukas Rytz <lukas.rytz@epfl.ch>2012-07-13 14:22:27 +0200
commit2c5890b3a7aa227643fde86ba72820a8016bc453 (patch)
treedb02fc3ceb9fbd7112fe74cc47df24900a05d0df /test/files/neg/t5956.scala
parent758f0a7ac5366c9748739032383456b6e7727d37 (diff)
downloadscala-2c5890b3a7aa227643fde86ba72820a8016bc453.tar.gz
scala-2c5890b3a7aa227643fde86ba72820a8016bc453.tar.bz2
scala-2c5890b3a7aa227643fde86ba72820a8016bc453.zip
SI-5956 trigger copy generation with correct namer
the call to `addCopyMethod` passes `templateNamer`, which is supposed to be the namer of the case class template. with two classes of the same name, `addCopyMethod` was triggered in the wrong template.
Diffstat (limited to 'test/files/neg/t5956.scala')
-rw-r--r--test/files/neg/t5956.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/files/neg/t5956.scala b/test/files/neg/t5956.scala
new file mode 100644
index 0000000000..d985fa97a4
--- /dev/null
+++ b/test/files/neg/t5956.scala
@@ -0,0 +1,2 @@
+object O { case class C[T]; class C }
+object T { case class C[T]; case class C }