aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-04-10 17:55:27 +0200
committerJason Zaugg <jzaugg@gmail.com>2013-04-10 18:03:24 +0200
commit74beb1b751f6abf1775d6a8ec3eea4d63f3fd41f (patch)
treeff7faffab9c3bb91c6f698ab38766676abe767a7 /src/test
parentb60346cda87a4b2213d9b779ed4c6241f126647d (diff)
downloadscala-async-74beb1b751f6abf1775d6a8ec3eea4d63f3fd41f.tar.gz
scala-async-74beb1b751f6abf1775d6a8ec3eea4d63f3fd41f.tar.bz2
scala-async-74beb1b751f6abf1775d6a8ec3eea4d63f3fd41f.zip
Scala 2.10.1 compat: apply renaming to originals of TypeTrees
This time in the ANF/Inline transformation.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/scala/scala/async/run/anf/AnfTransformSpec.scala35
1 files changed, 17 insertions, 18 deletions
diff --git a/src/test/scala/scala/async/run/anf/AnfTransformSpec.scala b/src/test/scala/scala/async/run/anf/AnfTransformSpec.scala
index 03db205..41c13e0 100644
--- a/src/test/scala/scala/async/run/anf/AnfTransformSpec.scala
+++ b/src/test/scala/scala/async/run/anf/AnfTransformSpec.scala
@@ -112,24 +112,23 @@ class AnfTransformSpec {
State.result mustBe (14)
}
-// TODO 2.10.1
-// @Test
-// def `inlining block does not produce duplicate definition`() {
-// import scala.async.AsyncId
-//
-// AsyncId.async {
-// val f = 12
-// val x = AsyncId.await(f)
-//
-// {
-// type X = Int
-// val x: X = 42
-// println(x)
-// }
-// type X = Int
-// x: X
-// }
-// }
+ @Test
+ def `inlining block does not produce duplicate definition`() {
+ import scala.async.AsyncId
+
+ AsyncId.async {
+ val f = 12
+ val x = AsyncId.await(f)
+
+ {
+ type X = Int
+ val x: X = 42
+ println(x)
+ }
+ type X = Int
+ x: X
+ }
+ }
@Test
def `inlining block in tail position does not produce duplicate definition`() {