diff options
Diffstat (limited to 'test/files/run/macro-declared-in-refinement')
-rw-r--r-- | test/files/run/macro-declared-in-refinement/Impls_1.scala | 11 | ||||
-rw-r--r-- | test/files/run/macro-declared-in-refinement/Macros_Test_2.scala | 6 |
2 files changed, 0 insertions, 17 deletions
diff --git a/test/files/run/macro-declared-in-refinement/Impls_1.scala b/test/files/run/macro-declared-in-refinement/Impls_1.scala deleted file mode 100644 index 6f06f6d3f0..0000000000 --- a/test/files/run/macro-declared-in-refinement/Impls_1.scala +++ /dev/null @@ -1,11 +0,0 @@ -import scala.reflect.macros.{Context => Ctx} - -object Impls { - def foo(c: Ctx) = { - import c.{prefix => prefix} - import c.universe._ - val printPrefix = Apply(Select(Ident(definitions.PredefModule), newTermName("println")), List(Literal(Constant("prefix = " + prefix)))) - val body = Block(List(printPrefix), Apply(Select(Ident(definitions.PredefModule), newTermName("println")), List(Literal(Constant("it works"))))) - c.Expr[Unit](body) - } -}
\ No newline at end of file diff --git a/test/files/run/macro-declared-in-refinement/Macros_Test_2.scala b/test/files/run/macro-declared-in-refinement/Macros_Test_2.scala deleted file mode 100644 index f746c2da57..0000000000 --- a/test/files/run/macro-declared-in-refinement/Macros_Test_2.scala +++ /dev/null @@ -1,6 +0,0 @@ -class Base - -object Test extends App { - val macros = new Base { def foo = macro Impls.foo } - macros.foo -}
\ No newline at end of file |