summaryrefslogtreecommitdiff
path: root/test/files/run/macro-expand-tparams-prefix-b/Impls_1.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/macro-expand-tparams-prefix-b/Impls_1.scala')
-rw-r--r--test/files/run/macro-expand-tparams-prefix-b/Impls_1.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/macro-expand-tparams-prefix-b/Impls_1.scala b/test/files/run/macro-expand-tparams-prefix-b/Impls_1.scala
new file mode 100644
index 0000000000..8af3ecc9ae
--- /dev/null
+++ b/test/files/run/macro-expand-tparams-prefix-b/Impls_1.scala
@@ -0,0 +1,11 @@
+import scala.reflect.makro.{Context => Ctx}
+
+object Impls {
+ def foo[T: c.TypeTag, U: c.TypeTag](c: Ctx)(x: c.Expr[U]) = {
+ import c.mirror._
+ val T = implicitly[c.TypeTag[T]]
+ val U = implicitly[c.TypeTag[U]]
+ val body = Apply(Select(Ident(definitions.PredefModule), newTermName("println")), List(Literal(Constant(T.toString + " " + U.toString))))
+ Expr[Unit](body)
+ }
+}