diff options
author | Seth Tisue <seth@tisue.net> | 2017-03-21 10:35:05 -0700 |
---|---|---|
committer | Seth Tisue <seth@tisue.net> | 2017-03-21 10:35:05 -0700 |
commit | 4b9816100c704fd8ecfb1a8fa66f86e6284c07cb (patch) | |
tree | 5f748bbc562da8803513444375659f7cd96496f5 /test/pending/run/macro-reify-tagless-b | |
parent | 25048bc73741846107c18ed01e0e9f6f07785379 (diff) | |
download | scala-4b9816100c704fd8ecfb1a8fa66f86e6284c07cb.tar.gz scala-4b9816100c704fd8ecfb1a8fa66f86e6284c07cb.tar.bz2 scala-4b9816100c704fd8ecfb1a8fa66f86e6284c07cb.zip |
remove test/pending directory too
it will all stay right there in the Git history to be consulted
anytime we want...
Diffstat (limited to 'test/pending/run/macro-reify-tagless-b')
-rw-r--r-- | test/pending/run/macro-reify-tagless-b/Impls_Macros_1.scala | 11 | ||||
-rw-r--r-- | test/pending/run/macro-reify-tagless-b/Test_2.scala | 13 |
2 files changed, 0 insertions, 24 deletions
diff --git a/test/pending/run/macro-reify-tagless-b/Impls_Macros_1.scala b/test/pending/run/macro-reify-tagless-b/Impls_Macros_1.scala deleted file mode 100644 index 1307052394..0000000000 --- a/test/pending/run/macro-reify-tagless-b/Impls_Macros_1.scala +++ /dev/null @@ -1,11 +0,0 @@ -import scala.reflect.macros.blackbox.Context - -object Macros { - def foo[T](s: T) = macro Impls.foo[List[T]] - - object Impls { - def foo[T](c: Context)(s: c.Expr[T]) = c.universe.reify { - List(s.splice) - } - } -}
\ No newline at end of file diff --git a/test/pending/run/macro-reify-tagless-b/Test_2.scala b/test/pending/run/macro-reify-tagless-b/Test_2.scala deleted file mode 100644 index 09ca6ba30e..0000000000 --- a/test/pending/run/macro-reify-tagless-b/Test_2.scala +++ /dev/null @@ -1,13 +0,0 @@ -object Test extends App { - //val list: List[String] = Macros.foo("hello world") - //println(list) - - import scala.reflect.runtime.universe._ - import scala.reflect.runtime.{currentMirror => cm} - import scala.tools.reflect.ToolBox - val tpt = AppliedTypeTree(Ident(definitions.ListClass), List(Ident(definitions.StringClass))) - val rhs = Apply(Select(Ident(TermName("Macros")), TermName("foo")), List(Literal(Constant("hello world")))) - val list = ValDef(NoMods, TermName("list"), tpt, rhs) - val tree = Block(list, Apply(Select(Ident(definitions.PredefModule), TermName("println")), List(Ident(list.name)))) - println(cm.mkToolBox().eval(tree)) -} |