diff options
Diffstat (limited to 'tests/pending/run/macro-enclosures/Impls_Macros_1.scala')
-rw-r--r-- | tests/pending/run/macro-enclosures/Impls_Macros_1.scala | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/pending/run/macro-enclosures/Impls_Macros_1.scala b/tests/pending/run/macro-enclosures/Impls_Macros_1.scala deleted file mode 100644 index 564cdfa68..000000000 --- a/tests/pending/run/macro-enclosures/Impls_Macros_1.scala +++ /dev/null @@ -1,23 +0,0 @@ -import scala.reflect.macros.blackbox.Context - -object Macros { - def impl(c: Context) = { - import c.universe._ - def chain(sym: Symbol): List[Symbol] = sym.owner match { - case NoSymbol => sym :: Nil - case owner => sym :: chain(owner) - } - q""" - println("enclosingPackage = " + ${c.enclosingPackage.toString}) - println("enclosingClass = " + ${c.enclosingClass.toString}) - println("enclosingImpl = " + ${c.enclosingImpl.toString}) - println("enclosingTemplate = " + ${c.enclosingTemplate.toString}) - println("enclosingMethod = " + ${c.enclosingMethod.toString}) - println("enclosingDef = " + ${c.enclosingDef.toString}) - println("enclosingOwner = " + ${c.internal.enclosingOwner.toString}) - println("enclosingOwnerChain = " + ${chain(c.internal.enclosingOwner).toString}) - """ - } - - def foo: Any = macro impl -}
\ No newline at end of file |