diff options
Diffstat (limited to 'test/files/run/macro-impl-tparam-typetag-is-optional/Impls_1.scala')
-rw-r--r-- | test/files/run/macro-impl-tparam-typetag-is-optional/Impls_1.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/macro-impl-tparam-typetag-is-optional/Impls_1.scala b/test/files/run/macro-impl-tparam-typetag-is-optional/Impls_1.scala new file mode 100644 index 0000000000..ace7a6cd26 --- /dev/null +++ b/test/files/run/macro-impl-tparam-typetag-is-optional/Impls_1.scala @@ -0,0 +1,9 @@ +import scala.reflect.macros.{Context => Ctx} + +object Impls { + def foo[U](c: Ctx) = { + import c.universe._ + val body = Apply(Select(Ident(definitions.PredefModule), TermName("println")), List(Literal(Constant("don't know U")))) + c.Expr[Unit](body) + } +}
\ No newline at end of file |