diff options
Diffstat (limited to 'test/files/run/reflection-constructormirror-toplevel-good.scala')
-rw-r--r-- | test/files/run/reflection-constructormirror-toplevel-good.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/reflection-constructormirror-toplevel-good.scala b/test/files/run/reflection-constructormirror-toplevel-good.scala index b68134b2cb..9842d01695 100644 --- a/test/files/run/reflection-constructormirror-toplevel-good.scala +++ b/test/files/run/reflection-constructormirror-toplevel-good.scala @@ -13,8 +13,8 @@ class Foo{ val classTag = implicitly[ClassTag[R]] val cl = classTag.runtimeClass.getClassLoader val cm = runtimeMirror(cl) - val constructor = expectedType.tpe.member( nme.CONSTRUCTOR ).asMethod - val sig = constructor.typeSignature + val constructor = expectedType.tpe.member( termNames.CONSTRUCTOR ).asMethod + val sig = constructor.info val sym = cm.classSymbol( classTag.runtimeClass ) val cls = cm.reflectClass( sym ) cls.reflectConstructor( constructor )( 5,"test" ).asInstanceOf[R] |