summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-09-30 02:05:39 +0000
committerPaul Phillips <paulp@improving.org>2011-09-30 02:05:39 +0000
commit6663d12daa44d2ca8240ed796b8f2900379844f1 (patch)
tree5e980c0be0526e9643da63d17cf81a69edf70560 /test
parent6116b8db81b46b0f179a1ea277a7323595e6dd68 (diff)
downloadscala-6663d12daa44d2ca8240ed796b8f2900379844f1.tar.gz
scala-6663d12daa44d2ca8240ed796b8f2900379844f1.tar.bz2
scala-6663d12daa44d2ca8240ed796b8f2900379844f1.zip
Massively simplified caseFieldAccessors.
It's nice when you can delete such absurd complication by figuring out how to avoid it in the first place. Also includes some Namer cleanup as I tried to follow the logic involved to fix a protected[this] accessor bug. No review.
Diffstat (limited to 'test')
-rw-r--r--test/files/neg/t1422.check2
-rw-r--r--test/files/neg/t1422.scala2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/files/neg/t1422.check b/test/files/neg/t1422.check
index 5931fcb049..4db64f1d49 100644
--- a/test/files/neg/t1422.check
+++ b/test/files/neg/t1422.check
@@ -1,4 +1,4 @@
t1422.scala:1: error: private[this] not allowed for case class parameters
-case class A(private[this] val foo:String)
+case class A(private[this] val foo:String) { }
^
one error found
diff --git a/test/files/neg/t1422.scala b/test/files/neg/t1422.scala
index 751f05a764..af308244cd 100644
--- a/test/files/neg/t1422.scala
+++ b/test/files/neg/t1422.scala
@@ -1 +1 @@
-case class A(private[this] val foo:String)
+case class A(private[this] val foo:String) { }