From 38aaa3a24ae8081c7552eede4f805e8ff063b49d Mon Sep 17 00:00:00 2001 From: Eugene Burmako Date: Tue, 17 Jul 2012 20:35:53 +0200 Subject: 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. --- test/pending/run/t5695/part_1.scala | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 test/pending/run/t5695/part_1.scala (limited to 'test/pending/run/t5695/part_1.scala') 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 } - } - -} -- cgit v1.2.3