diff options
Diffstat (limited to 'tests/pending/run/macro-abort-fresh')
-rw-r--r-- | tests/pending/run/macro-abort-fresh/Macros_1.scala | 15 | ||||
-rw-r--r-- | tests/pending/run/macro-abort-fresh/Test_2.scala | 8 |
2 files changed, 0 insertions, 23 deletions
diff --git a/tests/pending/run/macro-abort-fresh/Macros_1.scala b/tests/pending/run/macro-abort-fresh/Macros_1.scala deleted file mode 100644 index 2b03512ef..000000000 --- a/tests/pending/run/macro-abort-fresh/Macros_1.scala +++ /dev/null @@ -1,15 +0,0 @@ -import scala.reflect.macros.blackbox.Context - -object Impls { - def impl(c: Context) = { - import c.universe._ - println(c.fresh()) - println(c.fresh("qwe")) - println(c.fresh(TypeName("qwe"))) - c.abort(NoPosition, "blargh") - } -} - -object Macros { - def foo = macro Impls.impl -}
\ No newline at end of file diff --git a/tests/pending/run/macro-abort-fresh/Test_2.scala b/tests/pending/run/macro-abort-fresh/Test_2.scala deleted file mode 100644 index dea6e6d62..000000000 --- a/tests/pending/run/macro-abort-fresh/Test_2.scala +++ /dev/null @@ -1,8 +0,0 @@ -object Test extends dotty.runtime.LegacyApp { - import scala.reflect.runtime.universe._ - import scala.reflect.runtime.{currentMirror => cm} - import scala.tools.reflect.ToolBox - val tree = Select(Ident(TermName("Macros")), TermName("foo")) - try cm.mkToolBox().eval(tree) - catch { case ex: Throwable => println(ex.getMessage) } -}
\ No newline at end of file |