aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/macro-expand-implicit-macro-is-view
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/run/macro-expand-implicit-macro-is-view')
-rw-r--r--tests/pending/run/macro-expand-implicit-macro-is-view/Impls_1.scala9
-rw-r--r--tests/pending/run/macro-expand-implicit-macro-is-view/Macros_Test_2.scala12
2 files changed, 0 insertions, 21 deletions
diff --git a/tests/pending/run/macro-expand-implicit-macro-is-view/Impls_1.scala b/tests/pending/run/macro-expand-implicit-macro-is-view/Impls_1.scala
deleted file mode 100644
index d72db872e..000000000
--- a/tests/pending/run/macro-expand-implicit-macro-is-view/Impls_1.scala
+++ /dev/null
@@ -1,9 +0,0 @@
-import scala.reflect.macros.blackbox.Context
-
-object Impls {
- def foo(c: Context)(x: c.Expr[String]): c.Expr[Option[Int]] = {
- import c.universe._
- val body = Apply(Ident(definitions.SomeModule), List(Select(x.tree, TermName("toInt"))))
- c.Expr[Option[Int]](body)
- }
-}
diff --git a/tests/pending/run/macro-expand-implicit-macro-is-view/Macros_Test_2.scala b/tests/pending/run/macro-expand-implicit-macro-is-view/Macros_Test_2.scala
deleted file mode 100644
index c7b09435a..000000000
--- a/tests/pending/run/macro-expand-implicit-macro-is-view/Macros_Test_2.scala
+++ /dev/null
@@ -1,12 +0,0 @@
-
-object Macros {
- import scala.language.experimental.macros
- import scala.language.implicitConversions
- implicit def foo(x: String): Option[Int] = macro Impls.foo
-}
-
-object Test extends dotty.runtime.LegacyApp {
- import Macros._
- def bar[T <% Option[Int]](x: T) = println(x)
- println("2")
-}