diff options
Diffstat (limited to 'tests/pending/run/macro-parse-position-malformed/Impls_Macros_1.scala')
-rw-r--r-- | tests/pending/run/macro-parse-position-malformed/Impls_Macros_1.scala | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/pending/run/macro-parse-position-malformed/Impls_Macros_1.scala b/tests/pending/run/macro-parse-position-malformed/Impls_Macros_1.scala deleted file mode 100644 index b623d8820..000000000 --- a/tests/pending/run/macro-parse-position-malformed/Impls_Macros_1.scala +++ /dev/null @@ -1,18 +0,0 @@ -import scala.language.experimental.macros -import scala.reflect.macros.blackbox.Context -import scala.reflect.macros.ParseException - -object Macros { - def impl(c: Context)() = { - import c.universe._ - val out = try { - c.parse("foo(bar") - "didn't fail" - } catch { - case e: ParseException => - s"failed with '${e.pos}' position and '${e.msg}' message" - } - c.Expr[String](Literal(Constant(out))) - } - def foo(): String = macro impl -}
\ No newline at end of file |