diff options
Diffstat (limited to 'tests/pending/run/macro-bundle-toplevel')
-rw-r--r-- | tests/pending/run/macro-bundle-toplevel/Impls_Macros_1.scala | 25 | ||||
-rw-r--r-- | tests/pending/run/macro-bundle-toplevel/Test_2.scala | 8 |
2 files changed, 0 insertions, 33 deletions
diff --git a/tests/pending/run/macro-bundle-toplevel/Impls_Macros_1.scala b/tests/pending/run/macro-bundle-toplevel/Impls_Macros_1.scala deleted file mode 100644 index 6fd7be3b2..000000000 --- a/tests/pending/run/macro-bundle-toplevel/Impls_Macros_1.scala +++ /dev/null @@ -1,25 +0,0 @@ -import scala.reflect.macros.blackbox.Context - -class Impl(val c: Context) { - def mono = { import c.universe._; c.Expr[Unit](q"()") } - def poly[T: c.WeakTypeTag] = { import c.universe._; c.Expr[String](q"${c.weakTypeOf[T].toString}") } - def weird = macro mono -} - -object Macros { - def mono = macro Impl.mono - def poly[T] = macro Impl.poly[T] -} - -package pkg { - class Impl(val c: Context) { - def mono = { import c.universe._; c.Expr[Boolean](q"true") } - def poly[T: c.WeakTypeTag] = { import c.universe._; c.Expr[String](q"${c.weakTypeOf[T].toString + c.weakTypeOf[T].toString}") } - def weird = macro mono - } - - object Macros { - def mono = macro Impl.mono - def poly[T] = macro Impl.poly[T] - } -}
\ No newline at end of file diff --git a/tests/pending/run/macro-bundle-toplevel/Test_2.scala b/tests/pending/run/macro-bundle-toplevel/Test_2.scala deleted file mode 100644 index 013baa348..000000000 --- a/tests/pending/run/macro-bundle-toplevel/Test_2.scala +++ /dev/null @@ -1,8 +0,0 @@ -object Test extends dotty.runtime.LegacyApp { - println(Macros.mono) - println(Macros.poly[Int]) - println(new Impl(???).weird) - println(pkg.Macros.mono) - println(pkg.Macros.poly[Int]) - println(new pkg.Impl(???).weird) -}
\ No newline at end of file |