summaryrefslogtreecommitdiff
path: root/test/files/run/t6323b.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2014-01-30 09:40:22 +0300
committerEugene Burmako <xeno.by@gmail.com>2014-02-14 23:51:21 +0100
commit012ad093a68c08f6962f2fb282a0be43c10e988d (patch)
tree0215e4ea2dbaa3b9496608a36d9039264777b4f6 /test/files/run/t6323b.scala
parentf14e9fe5eda611798d95955620b3e653a2991475 (diff)
downloadscala-012ad093a68c08f6962f2fb282a0be43c10e988d.tar.gz
scala-012ad093a68c08f6962f2fb282a0be43c10e988d.tar.bz2
scala-012ad093a68c08f6962f2fb282a0be43c10e988d.zip
deprecates api#Name.decoded and api#Name.encoded
Presence of both decoded/encoded and decodedName/encodedName has always baffled me, as one of those method groups is clearly redundant, and this pull request presents a great opportunity to address this by deprecating one of the groups. After some deliberation, I’ve chosen decoded/encoded as the deprecation target, because its derivation from decodedName/encodedName is easier than the other way around.
Diffstat (limited to 'test/files/run/t6323b.scala')
-rw-r--r--test/files/run/t6323b.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/t6323b.scala b/test/files/run/t6323b.scala
index f530ac3ecc..50d0900c7f 100644
--- a/test/files/run/t6323b.scala
+++ b/test/files/run/t6323b.scala
@@ -10,7 +10,7 @@ object Test extends App {
val lookAtMe = m.reflect(Test("a",List(5)))
val value = u.weakTypeOf[Test]
val members = value.members
- val member = value.members.filter(_.name.encoded == "a")
+ val member = value.members.filter(_.name.encodedName == TermName("a"))
val aAccessor = lookAtMe.reflectMethod(member.head.asMethod)
val thisShouldBeA = aAccessor.apply()
println(thisShouldBeA)