diff options
Diffstat (limited to 'test/files/run/macro-declared-in-class-object')
-rw-r--r-- | test/files/run/macro-declared-in-class-object/Impls_1.scala | 11 | ||||
-rw-r--r-- | test/files/run/macro-declared-in-class-object/Macros_Test_2.scala | 10 |
2 files changed, 0 insertions, 21 deletions
diff --git a/test/files/run/macro-declared-in-class-object/Impls_1.scala b/test/files/run/macro-declared-in-class-object/Impls_1.scala deleted file mode 100644 index 6f06f6d3f0..0000000000 --- a/test/files/run/macro-declared-in-class-object/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-class-object/Macros_Test_2.scala b/test/files/run/macro-declared-in-class-object/Macros_Test_2.scala deleted file mode 100644 index 994f9fe935..0000000000 --- a/test/files/run/macro-declared-in-class-object/Macros_Test_2.scala +++ /dev/null @@ -1,10 +0,0 @@ -class Macros { - object Macros { - def foo = macro Impls.foo - } -} - -object Test extends App { - val outer = new Macros() - outer.Macros.foo -}
\ No newline at end of file |