From 70f001181734f76064d97ec25b1afd6aad49b684 Mon Sep 17 00:00:00 2001 From: Eugene Burmako Date: Mon, 14 Jan 2013 23:55:25 +0100 Subject: refactors macro tests putting in a nutshell, this patch: * condenses some macro-XXX-a/b/c/... bundles * renames some tests to prepare for other macro flavors * introduces some additional tests --- test/files/run/macro-impl-tparam-only-in-impl/Impls_1.scala | 5 +++++ test/files/run/macro-impl-tparam-only-in-impl/Macros_Test_2.scala | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 test/files/run/macro-impl-tparam-only-in-impl/Impls_1.scala create mode 100644 test/files/run/macro-impl-tparam-only-in-impl/Macros_Test_2.scala (limited to 'test/files/run/macro-impl-tparam-only-in-impl') diff --git a/test/files/run/macro-impl-tparam-only-in-impl/Impls_1.scala b/test/files/run/macro-impl-tparam-only-in-impl/Impls_1.scala new file mode 100644 index 0000000000..9b8dafaa97 --- /dev/null +++ b/test/files/run/macro-impl-tparam-only-in-impl/Impls_1.scala @@ -0,0 +1,5 @@ +import scala.reflect.macros.{Context => Ctx} + +object Impls { + def foo[U <: String](c: Ctx): c.Expr[Unit] = c.literalUnit +} diff --git a/test/files/run/macro-impl-tparam-only-in-impl/Macros_Test_2.scala b/test/files/run/macro-impl-tparam-only-in-impl/Macros_Test_2.scala new file mode 100644 index 0000000000..218c7aec7f --- /dev/null +++ b/test/files/run/macro-impl-tparam-only-in-impl/Macros_Test_2.scala @@ -0,0 +1,8 @@ +object Macros { + def foo = macro Impls.foo[String] +} + +object Test extends App { + import Macros._ + foo +} \ No newline at end of file -- cgit v1.2.3