summaryrefslogtreecommitdiff
path: root/test/files/run/reflection-enclosed-basic.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/reflection-enclosed-basic.scala')
-rw-r--r--test/files/run/reflection-enclosed-basic.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/reflection-enclosed-basic.scala b/test/files/run/reflection-enclosed-basic.scala
index 7b9e0c20dc..e001207e82 100644
--- a/test/files/run/reflection-enclosed-basic.scala
+++ b/test/files/run/reflection-enclosed-basic.scala
@@ -12,7 +12,7 @@ private object B6 extends B2 { override def toString = "B6"; override def foo =
object Test extends App {
def testMethodInvocation(instance: Any) = {
val instanceMirror = cm.reflect(instance)
- val method = instanceMirror.symbol.typeSignature.declaration(TermName("foo")).asMethod
+ val method = instanceMirror.symbol.info.decl(TermName("foo")).asMethod
val methodMirror = instanceMirror.reflectMethod(method)
println(methodMirror())
}
@@ -20,7 +20,7 @@ object Test extends App {
def testNestedClass(name: String) = {
val sym = cm.staticClass(name)
println(sym)
- val ctor = sym.typeSignature.declaration(nme.CONSTRUCTOR).asMethod
+ val ctor = sym.info.decl(termNames.CONSTRUCTOR).asMethod
val ctorMirror = cm.reflectClass(sym).reflectConstructor(ctor)
val instance = ctorMirror()
println(instance)