aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/macro-bundle-toplevel/Impls_Macros_1.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/run/macro-bundle-toplevel/Impls_Macros_1.scala')
-rw-r--r--tests/pending/run/macro-bundle-toplevel/Impls_Macros_1.scala25
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/pending/run/macro-bundle-toplevel/Impls_Macros_1.scala b/tests/pending/run/macro-bundle-toplevel/Impls_Macros_1.scala
deleted file mode 100644
index 6fd7be3b2..000000000
--- a/tests/pending/run/macro-bundle-toplevel/Impls_Macros_1.scala
+++ /dev/null
@@ -1,25 +0,0 @@
-import scala.reflect.macros.blackbox.Context
-
-class Impl(val c: Context) {
- def mono = { import c.universe._; c.Expr[Unit](q"()") }
- def poly[T: c.WeakTypeTag] = { import c.universe._; c.Expr[String](q"${c.weakTypeOf[T].toString}") }
- def weird = macro mono
-}
-
-object Macros {
- def mono = macro Impl.mono
- def poly[T] = macro Impl.poly[T]
-}
-
-package pkg {
- class Impl(val c: Context) {
- def mono = { import c.universe._; c.Expr[Boolean](q"true") }
- def poly[T: c.WeakTypeTag] = { import c.universe._; c.Expr[String](q"${c.weakTypeOf[T].toString + c.weakTypeOf[T].toString}") }
- def weird = macro mono
- }
-
- object Macros {
- def mono = macro Impl.mono
- def poly[T] = macro Impl.poly[T]
- }
-} \ No newline at end of file