summaryrefslogtreecommitdiff
path: root/test/files/run/reflection-enclosed-nested-nested-basic.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-12-29 10:32:08 +0100
committerEugene Burmako <xeno.by@gmail.com>2012-12-29 10:32:08 +0100
commit56ef2b330dfb3381fe2f6e717b959f1757ce69bb (patch)
tree327298a4deda452dd13267789e784b1d7d03222b /test/files/run/reflection-enclosed-nested-nested-basic.scala
parenteea635a1c60a72a8a465fbf2cd659442c6b763ea (diff)
downloadscala-56ef2b330dfb3381fe2f6e717b959f1757ce69bb.tar.gz
scala-56ef2b330dfb3381fe2f6e717b959f1757ce69bb.tar.bz2
scala-56ef2b330dfb3381fe2f6e717b959f1757ce69bb.zip
cleans up usages of <init>
Diffstat (limited to 'test/files/run/reflection-enclosed-nested-nested-basic.scala')
-rw-r--r--test/files/run/reflection-enclosed-nested-nested-basic.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/reflection-enclosed-nested-nested-basic.scala b/test/files/run/reflection-enclosed-nested-nested-basic.scala
index 247eba120e..b4711c9a8c 100644
--- a/test/files/run/reflection-enclosed-nested-nested-basic.scala
+++ b/test/files/run/reflection-enclosed-nested-nested-basic.scala
@@ -28,7 +28,7 @@ object Test extends App {
def testNestedClass(name: String) = {
val sym = b.typeSignature.declaration(TypeName(name)).asClass
println(sym)
- val ctor = sym.typeSignature.declaration(TermName("<init>")).asMethod
+ val ctor = sym.typeSignature.declaration(nme.CONSTRUCTOR).asMethod
val ctorMirror = cm.reflectClass(sym).reflectConstructor(ctor)
val instance = ctorMirror()
println(instance)