summaryrefslogtreecommitdiff
path: root/test/files/run/macro-expand-implicit-argument
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-expand-implicit-argument
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-expand-implicit-argument')
-rw-r--r--test/files/run/macro-expand-implicit-argument/Macros_1.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/run/macro-expand-implicit-argument/Macros_1.scala b/test/files/run/macro-expand-implicit-argument/Macros_1.scala
index d9fd5b8cb0..b2c7b4d6ca 100644
--- a/test/files/run/macro-expand-implicit-argument/Macros_1.scala
+++ b/test/files/run/macro-expand-implicit-argument/Macros_1.scala
@@ -41,14 +41,14 @@ object Macros {
def const(x:Int) = Literal(Constant(x))
val n = as.length
- val arr = newTermName("arr")
+ val arr = TermName("arr")
- val create = Apply(Select(ct.tree, newTermName("newArray")), List(const(n)))
+ val create = Apply(Select(ct.tree, TermName("newArray")), List(const(n)))
val arrtpe = TypeTree(implicitly[c.WeakTypeTag[Array[A]]].tpe)
val valdef = ValDef(Modifiers(), arr, arrtpe, create)
val updates = (0 until n).map {
- i => Apply(Select(Ident(arr), newTermName("update")), List(const(i), as(i).tree))
+ i => Apply(Select(Ident(arr), TermName("update")), List(const(i), as(i).tree))
}
val exprs = (Seq(valdef) ++ updates ++ Seq(Ident(arr))).toList