summaryrefslogtreecommitdiff
path: root/test/files/run/idempotency-lazy-vals.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2014-01-10 01:36:06 +0100
committerEugene Burmako <xeno.by@gmail.com>2014-01-21 12:24:51 +0300
commit752f1eb63e931e04fd2818f32b6ca7e68e4298d2 (patch)
tree4101e34d71d3e8393d959de6fff7717d983747f7 /test/files/run/idempotency-lazy-vals.scala
parent97286d761a5eaf18cc7018aa162866232a87ed91 (diff)
downloadscala-752f1eb63e931e04fd2818f32b6ca7e68e4298d2.tar.gz
scala-752f1eb63e931e04fd2818f32b6ca7e68e4298d2.tar.bz2
scala-752f1eb63e931e04fd2818f32b6ca7e68e4298d2.zip
deprecates resetAllAttrs and resetLocalAttrs in favor of the new API
We now have c.untypecheck, which is supposed to be a counterpart of c.typecheck in the sense that it goes back from typed trees to untyped ones: http://stackoverflow.com/questions/20936509/scala-macros-what-is-the-difference-between-typed-aka-typechecked-an-untyped. Let’s hope that c.untypecheck will soon be able to solve our problems with partially/incorrectly attributed trees emitted by macros: https://groups.google.com/forum/#!topic/scala-internals/TtCTPlj_qcQ.
Diffstat (limited to 'test/files/run/idempotency-lazy-vals.scala')
-rw-r--r--test/files/run/idempotency-lazy-vals.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/idempotency-lazy-vals.scala b/test/files/run/idempotency-lazy-vals.scala
index e763f2f3f4..9d677caeca 100644
--- a/test/files/run/idempotency-lazy-vals.scala
+++ b/test/files/run/idempotency-lazy-vals.scala
@@ -17,7 +17,7 @@ object Test extends App {
val tb = cm.mkToolBox()
val tlazee = tb.typecheck(lazee.tree)
println(tlazee)
- val rtlazee = tb.resetAllAttrs(tlazee)
+ val rtlazee = tb.untypecheck(tlazee)
try {
println(tb.eval(rtlazee))
} catch {