diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-12-29 10:32:08 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-12-29 10:32:08 +0100 |
commit | 56ef2b330dfb3381fe2f6e717b959f1757ce69bb (patch) | |
tree | 327298a4deda452dd13267789e784b1d7d03222b /test/files/run/reflection-enclosed-nested-basic.scala | |
parent | eea635a1c60a72a8a465fbf2cd659442c6b763ea (diff) | |
download | scala-56ef2b330dfb3381fe2f6e717b959f1757ce69bb.tar.gz scala-56ef2b330dfb3381fe2f6e717b959f1757ce69bb.tar.bz2 scala-56ef2b330dfb3381fe2f6e717b959f1757ce69bb.zip |
cleans up usages of <init>
Diffstat (limited to 'test/files/run/reflection-enclosed-nested-basic.scala')
-rw-r--r-- | test/files/run/reflection-enclosed-nested-basic.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/reflection-enclosed-nested-basic.scala b/test/files/run/reflection-enclosed-nested-basic.scala index a629d8a2d0..180ac4ebee 100644 --- a/test/files/run/reflection-enclosed-nested-basic.scala +++ b/test/files/run/reflection-enclosed-nested-basic.scala @@ -26,7 +26,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) |