diff options
Diffstat (limited to 'tests/pending/run/macro-bundle-whitebox-decl/Impls_Macros_1.scala')
-rw-r--r-- | tests/pending/run/macro-bundle-whitebox-decl/Impls_Macros_1.scala | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/tests/pending/run/macro-bundle-whitebox-decl/Impls_Macros_1.scala b/tests/pending/run/macro-bundle-whitebox-decl/Impls_Macros_1.scala deleted file mode 100644 index 5e1b11895..000000000 --- a/tests/pending/run/macro-bundle-whitebox-decl/Impls_Macros_1.scala +++ /dev/null @@ -1,26 +0,0 @@ -import scala.language.experimental.macros -import scala.reflect.macros.whitebox.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 |