summaryrefslogtreecommitdiff
path: root/test/files/run/macro-reify-eval-outside-reify/Impls_Macros_1.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-04-27 17:18:25 +0300
committerEugene Burmako <xeno.by@gmail.com>2012-04-27 17:18:25 +0300
commit2bd62d2cfff47882eb72768cfb054638ed0f039b (patch)
treeebeb724d3760f989d21622564f2a7669d50a3d45 /test/files/run/macro-reify-eval-outside-reify/Impls_Macros_1.scala
parent543df62aed1fcdcf3902b9b54ec4495a882b0fcc (diff)
downloadscala-2bd62d2cfff47882eb72768cfb054638ed0f039b.tar.gz
scala-2bd62d2cfff47882eb72768cfb054638ed0f039b.tar.bz2
scala-2bd62d2cfff47882eb72768cfb054638ed0f039b.zip
fixes broken eval tests
Diffstat (limited to 'test/files/run/macro-reify-eval-outside-reify/Impls_Macros_1.scala')
-rw-r--r--test/files/run/macro-reify-eval-outside-reify/Impls_Macros_1.scala5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/files/run/macro-reify-eval-outside-reify/Impls_Macros_1.scala b/test/files/run/macro-reify-eval-outside-reify/Impls_Macros_1.scala
index 13b603d610..086f9aeef2 100644
--- a/test/files/run/macro-reify-eval-outside-reify/Impls_Macros_1.scala
+++ b/test/files/run/macro-reify-eval-outside-reify/Impls_Macros_1.scala
@@ -1,7 +1,10 @@
import scala.reflect.makro.{Context => Ctx}
object Impls {
- def foo(c: Ctx)(x: c.Expr[Int]) = c.literal(x.eval)
+ def foo(c: Ctx)(x: c.Expr[Int]) = {
+ val x1 = c.Expr[Int](c.resetAllAttrs(x.tree))
+ c.literal(x1.eval)
+ }
}
object Macros {