diff options
Diffstat (limited to 'tests/pending/run/macro-expand-nullary-generic/Impls_1.scala')
-rw-r--r-- | tests/pending/run/macro-expand-nullary-generic/Impls_1.scala | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/pending/run/macro-expand-nullary-generic/Impls_1.scala b/tests/pending/run/macro-expand-nullary-generic/Impls_1.scala deleted file mode 100644 index 9362d6c17..000000000 --- a/tests/pending/run/macro-expand-nullary-generic/Impls_1.scala +++ /dev/null @@ -1,15 +0,0 @@ -import scala.reflect.runtime.universe._ -import scala.reflect.macros.blackbox.Context - -object Impls { - def impl[T: c.WeakTypeTag](c: Context)(meth: String) = { - import c.universe._ - val body = Apply(Select(Ident(definitions.PredefModule), TermName("println")), List(Literal(Constant(s"$meth[${c.weakTypeOf[T]}]")))) - c.Expr[Unit](body) - } - - def fooNullary[T: c.WeakTypeTag](c: Context) = impl[T](c)("fooNullary") - def fooEmpty[T: c.WeakTypeTag](c: Context)() = impl[T](c)("fooEmpty") - def barNullary[T: c.WeakTypeTag](c: Context)(x: c.Expr[Int]) = impl[T](c)("barNullary") - def barEmpty[T: c.WeakTypeTag](c: Context)(x: c.Expr[Int])() = impl[T](c)("barEmpty") -}
\ No newline at end of file |