summaryrefslogtreecommitdiff
path: root/test/pending/run
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-07-17 20:35:53 +0200
committerEugene Burmako <xeno.by@gmail.com>2012-07-18 10:23:30 +0200
commit38aaa3a24ae8081c7552eede4f805e8ff063b49d (patch)
treeeb0b323942be31d79c81148576f7604a09cca7b5 /test/pending/run
parent0cfd858a38ddf0ac83d9bbefe85110f88dc707c0 (diff)
downloadscala-38aaa3a24ae8081c7552eede4f805e8ff063b49d.tar.gz
scala-38aaa3a24ae8081c7552eede4f805e8ff063b49d.tar.bz2
scala-38aaa3a24ae8081c7552eede4f805e8ff063b49d.zip
SI-5695 removes Context.enclosingApplication
Apparently it's impossible to find out the enclosing Apply node if you're an argument being typechecked (because the arguments are typechecked separately from the enclosing Apply). This functionality is by far not a core feature of macros, so I'm removing it.
Diffstat (limited to 'test/pending/run')
-rw-r--r--test/pending/run/t5695.check2
-rw-r--r--test/pending/run/t5695/part_1.scala12
-rw-r--r--test/pending/run/t5695/part_2.scala8
3 files changed, 0 insertions, 22 deletions
diff --git a/test/pending/run/t5695.check b/test/pending/run/t5695.check
deleted file mode 100644
index d50069ab4f..0000000000
--- a/test/pending/run/t5695.check
+++ /dev/null
@@ -1,2 +0,0 @@
-..
-..
diff --git a/test/pending/run/t5695/part_1.scala b/test/pending/run/t5695/part_1.scala
deleted file mode 100644
index b8e8f8e52f..0000000000
--- a/test/pending/run/t5695/part_1.scala
+++ /dev/null
@@ -1,12 +0,0 @@
-import language.experimental.macros
-import scala.reflect.makro.Context
-
-object Defs {
-
- def mkInt = macro mkIntImpl
- def mkIntImpl(c: Context): c.Expr[Any] = {
- println(c.enclosingApplication)
- c.reify{ 23 }
- }
-
-}
diff --git a/test/pending/run/t5695/part_2.scala b/test/pending/run/t5695/part_2.scala
deleted file mode 100644
index d34219437d..0000000000
--- a/test/pending/run/t5695/part_2.scala
+++ /dev/null
@@ -1,8 +0,0 @@
-import Defs._
-
-object Test extends App {
-
- val i1 = mkInt
- val i2 = identity(mkInt)
-
-}