diff options
Diffstat (limited to 'test/pending/run/macro-expand-tparams-prefix-e1')
-rw-r--r-- | test/pending/run/macro-expand-tparams-prefix-e1/Impls_1.scala | 12 | ||||
-rw-r--r-- | test/pending/run/macro-expand-tparams-prefix-e1/Macros_Test_2.scala | 13 |
2 files changed, 0 insertions, 25 deletions
diff --git a/test/pending/run/macro-expand-tparams-prefix-e1/Impls_1.scala b/test/pending/run/macro-expand-tparams-prefix-e1/Impls_1.scala deleted file mode 100644 index 683622b29d..0000000000 --- a/test/pending/run/macro-expand-tparams-prefix-e1/Impls_1.scala +++ /dev/null @@ -1,12 +0,0 @@ -import scala.reflect.macros.blackbox.Context - -object Impls { - def foo[T, U: c.WeakTypeTag, V](c: Context)(implicit T: c.WeakTypeTag[T], V: c.WeakTypeTag[V]): c.Expr[Unit] = { - import c.universe._ - Block(List( - Apply(Select(Ident(definitions.PredefModule), TermName("println")), List(Literal(Constant(T.toString)))), - Apply(Select(Ident(definitions.PredefModule), TermName("println")), List(Literal(Constant(implicitly[c.WeakTypeTag[U]].toString)))), - Apply(Select(Ident(definitions.PredefModule), TermName("println")), List(Literal(Constant(V.toString))))), - Literal(Constant(()))) - } -}
\ No newline at end of file diff --git a/test/pending/run/macro-expand-tparams-prefix-e1/Macros_Test_2.scala b/test/pending/run/macro-expand-tparams-prefix-e1/Macros_Test_2.scala deleted file mode 100644 index d4fc52fca0..0000000000 --- a/test/pending/run/macro-expand-tparams-prefix-e1/Macros_Test_2.scala +++ /dev/null @@ -1,13 +0,0 @@ -import scala.reflect.runtime.universe._ - -object Test extends App { - class D[T: TypeTag] { - class C[U: TypeTag] { - def foo[V] = macro Impls.foo[List[T], U, V] - foo[Boolean] - } - } - - val outer1 = new D[Int] - new outer1.C[String] -}
\ No newline at end of file |