summaryrefslogtreecommitdiff
path: root/test/files/run/macro-reify-tagless-a
diff options
context:
space:
mode:
authorDen Shabalin <den.shabalin@gmail.com>2012-12-11 18:17:56 +0100
committerEugene Burmako <xeno.by@gmail.com>2012-12-25 01:58:44 +0100
commiteea635a1c60a72a8a465fbf2cd659442c6b763ea (patch)
tree1e3cee1544438965a5283fa810730493124d80a0 /test/files/run/macro-reify-tagless-a
parent136bf70d79df1d8a65b98e094bbbc26cb5e3a96b (diff)
downloadscala-eea635a1c60a72a8a465fbf2cd659442c6b763ea.tar.gz
scala-eea635a1c60a72a8a465fbf2cd659442c6b763ea.tar.bz2
scala-eea635a1c60a72a8a465fbf2cd659442c6b763ea.zip
Changes reflection tests to use shorter name constructors
Diffstat (limited to 'test/files/run/macro-reify-tagless-a')
-rw-r--r--test/files/run/macro-reify-tagless-a/Test_2.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/run/macro-reify-tagless-a/Test_2.scala b/test/files/run/macro-reify-tagless-a/Test_2.scala
index 584c4bdf5b..afb418a755 100644
--- a/test/files/run/macro-reify-tagless-a/Test_2.scala
+++ b/test/files/run/macro-reify-tagless-a/Test_2.scala
@@ -6,9 +6,9 @@ object Test extends App {
import scala.reflect.runtime.{currentMirror => cm}
import scala.tools.reflect.ToolBox
val tpt = AppliedTypeTree(Ident(definitions.ListClass), List(Ident(definitions.StringClass)))
- val rhs = Apply(Select(Ident(newTermName("Macros")), newTermName("foo")), List(Literal(Constant("hello world"))))
- val list = ValDef(NoMods, newTermName("list"), tpt, rhs)
- val tree = Block(List(list), Apply(Select(Ident(definitions.PredefModule), newTermName("println")), List(Ident(list.name))))
+ val rhs = Apply(Select(Ident(TermName("Macros")), TermName("foo")), List(Literal(Constant("hello world"))))
+ val list = ValDef(NoMods, TermName("list"), tpt, rhs)
+ val tree = Block(List(list), Apply(Select(Ident(definitions.PredefModule), TermName("println")), List(Ident(list.name))))
try cm.mkToolBox().eval(tree)
catch { case ex: Throwable => println(ex.getMessage) }
}