From 75d5eee8c7f4d83dd64bca989027925e5ff081b6 Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Mon, 15 Jun 2015 18:19:06 +0200 Subject: Move tests that have " macro" or "reify" to disabled. --- .../run/macro-bundle-static/Impls_Macros_1.scala | 30 ++++++++++++++++++++++ .../macro/run/macro-bundle-static/Test_2.scala | 8 ++++++ 2 files changed, 38 insertions(+) create mode 100644 tests/disabled/macro/run/macro-bundle-static/Impls_Macros_1.scala create mode 100644 tests/disabled/macro/run/macro-bundle-static/Test_2.scala (limited to 'tests/disabled/macro/run/macro-bundle-static') diff --git a/tests/disabled/macro/run/macro-bundle-static/Impls_Macros_1.scala b/tests/disabled/macro/run/macro-bundle-static/Impls_Macros_1.scala new file mode 100644 index 000000000..0142e5d94 --- /dev/null +++ b/tests/disabled/macro/run/macro-bundle-static/Impls_Macros_1.scala @@ -0,0 +1,30 @@ +import scala.reflect.macros.blackbox.Context +import scala.language.experimental.macros + +object Enclosing { + 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 Enclosing.Impl.mono + def poly[T] = macro Enclosing.Impl.poly[T] +} + +package pkg { + object Enclosing { + 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 Enclosing.Impl.mono + def poly[T] = macro Enclosing.Impl.poly[T] + } +} \ No newline at end of file diff --git a/tests/disabled/macro/run/macro-bundle-static/Test_2.scala b/tests/disabled/macro/run/macro-bundle-static/Test_2.scala new file mode 100644 index 000000000..cfc1e1563 --- /dev/null +++ b/tests/disabled/macro/run/macro-bundle-static/Test_2.scala @@ -0,0 +1,8 @@ +object Test extends dotty.runtime.LegacyApp { + println(Macros.mono) + println(Macros.poly[Int]) + println(new Enclosing.Impl(???).weird) + println(pkg.Macros.mono) + println(pkg.Macros.poly[Int]) + println(new pkg.Enclosing.Impl(???).weird) +} \ No newline at end of file -- cgit v1.2.3