diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-04-27 17:18:25 +0300 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-04-27 17:18:25 +0300 |
commit | 2bd62d2cfff47882eb72768cfb054638ed0f039b (patch) | |
tree | ebeb724d3760f989d21622564f2a7669d50a3d45 /test | |
parent | 543df62aed1fcdcf3902b9b54ec4495a882b0fcc (diff) | |
download | scala-2bd62d2cfff47882eb72768cfb054638ed0f039b.tar.gz scala-2bd62d2cfff47882eb72768cfb054638ed0f039b.tar.bz2 scala-2bd62d2cfff47882eb72768cfb054638ed0f039b.zip |
fixes broken eval tests
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/macro-reify-eval-outside-reify/Impls_Macros_1.scala | 5 | ||||
-rw-r--r-- | test/files/run/macro-reify-value-outside-reify/Impls_Macros_1.scala | 5 |
2 files changed, 8 insertions, 2 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 { diff --git a/test/files/run/macro-reify-value-outside-reify/Impls_Macros_1.scala b/test/files/run/macro-reify-value-outside-reify/Impls_Macros_1.scala index 28ec1ace67..109e19e44a 100644 --- a/test/files/run/macro-reify-value-outside-reify/Impls_Macros_1.scala +++ b/test/files/run/macro-reify-value-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.value) + def foo(c: Ctx)(x: c.Expr[Int]) = { + val x1 = c.Expr[Int](c.resetAllAttrs(x.tree)) + c.literal(x1.value) + } } object Macros { |