diff options
Diffstat (limited to 'test/files/run/macro-reify-type/Macros_1.scala')
-rw-r--r-- | test/files/run/macro-reify-type/Macros_1.scala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/files/run/macro-reify-type/Macros_1.scala b/test/files/run/macro-reify-type/Macros_1.scala index bac1744c50..c38cf8aa52 100644 --- a/test/files/run/macro-reify-type/Macros_1.scala +++ b/test/files/run/macro-reify-type/Macros_1.scala @@ -6,6 +6,7 @@ object StaticReflect { def methodImpl[A: c.WeakTypeTag](c: Context)(name: c.Expr[String]): c.Expr[ru.Type] = { import c.universe._ + import internal._ val nameName: TermName = name.tree match { case Literal(Constant(str: String)) => TermName(str) @@ -16,8 +17,8 @@ object StaticReflect { clazz member nameName match { case NoSymbol => c.error(c.enclosingPosition, s"No member called $nameName in $clazz.") ; reify(ru.NoType) case member => - val mtpe = member typeSignatureIn clazz - val mtag = c.reifyType(treeBuild.mkRuntimeUniverseRef, Select(treeBuild.mkRuntimeUniverseRef, TermName("rootMirror")), mtpe) + val mtpe = member infoIn clazz + val mtag = c.reifyType(gen.mkRuntimeUniverseRef, Select(gen.mkRuntimeUniverseRef, TermName("rootMirror")), mtpe) val mtree = Select(mtag, TermName("tpe")) c.Expr[ru.Type](mtree) |