summaryrefslogtreecommitdiff
path: root/test/files/run/reflection-enclosed-inner-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-inner-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-inner-basic.scala')
-rw-r--r--test/files/run/reflection-enclosed-inner-basic.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/reflection-enclosed-inner-basic.scala b/test/files/run/reflection-enclosed-inner-basic.scala
index 997a67ed61..c1cf9bc336 100644
--- a/test/files/run/reflection-enclosed-inner-basic.scala
+++ b/test/files/run/reflection-enclosed-inner-basic.scala
@@ -26,7 +26,7 @@ object Test extends App {
def testInnerClass(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.reflect(new B).reflectClass(sym).reflectConstructor(ctor)
val instance = ctorMirror()
println(instance)