summaryrefslogtreecommitdiff
path: root/test/pending
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2014-02-07 13:09:55 +0100
committerEugene Burmako <xeno.by@gmail.com>2014-02-07 13:09:55 +0100
commitb6326af94d255cb96b997680baec5ae38c4db4c7 (patch)
treec22dedadb5170ec3a211c2eae88313ddd0080d02 /test/pending
parentf7870863c28d163d1016418783a1169fbd6022d0 (diff)
downloadscala-b6326af94d255cb96b997680baec5ae38c4db4c7.tar.gz
scala-b6326af94d255cb96b997680baec5ae38c4db4c7.tar.bz2
scala-b6326af94d255cb96b997680baec5ae38c4db4c7.zip
further limits discoverability of resetAttrs
This commit removes resetAllAttrs from the public reflection API. This method was previously deprecated, but on a second thought that doesn't do it justice. People should be aware that resetAllAttrs is just wrong, and if they have code that uses it, this code should be rewritten immediately without beating around the bush with deprecations. There's a source-compatible way of achieving that (resetLocalAttrs), so that shouldn't bring much trouble. Secondly, resetAllAttrs in compiler internals becomes deprecated. In subsequent commits I'm going to rewrite the only two locations in the compiler that uses it, and then I think we can remove it from the compiler as well.
Diffstat (limited to 'test/pending')
-rw-r--r--test/pending/run/idempotency-partial-functions.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pending/run/idempotency-partial-functions.scala b/test/pending/run/idempotency-partial-functions.scala
index e673da5a29..b26c442599 100644
--- a/test/pending/run/idempotency-partial-functions.scala
+++ b/test/pending/run/idempotency-partial-functions.scala
@@ -22,7 +22,7 @@ object Test extends App {
val tb = cm.mkToolBox()
val tpartials = tb.typecheck(partials.tree)
println(tpartials)
- val rtpartials = tb.resetAllAttrs(tpartials)
+ val rtpartials = tb.untypecheck(tpartials)
println(tb.eval(rtpartials))
}
Test.main(null) \ No newline at end of file