summaryrefslogtreecommitdiff
path: root/test/files/run/resetattrs-this.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/resetattrs-this.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/resetattrs-this.scala')
-rw-r--r--test/files/run/resetattrs-this.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/resetattrs-this.scala b/test/files/run/resetattrs-this.scala
index 6150a4e265..ff45d61dfe 100644
--- a/test/files/run/resetattrs-this.scala
+++ b/test/files/run/resetattrs-this.scala
@@ -6,6 +6,6 @@ object Test extends App {
val tb = cm.mkToolBox()
val tree = Select(This(cm.staticPackage("scala").moduleClass), TermName("Predef"))
val ttree = tb.typecheck(tree)
- val rttree = tb.resetAllAttrs(ttree)
+ val rttree = tb.untypecheck(ttree)
println(tb.eval(rttree) == Predef)
}