From b041fdc9cc372cfa9bed17f939747174b8b39542 Mon Sep 17 00:00:00 2001 From: Som Snytt Date: Wed, 24 Jul 2013 21:07:54 -0700 Subject: SI-7695 Macro debug output on -explaintypes It looks like checkConforms should wait for error before using explainTypes, rather than turning on macro debug trace if explaintypes is set. In particular, macro debug output is Console.println instead of reporter.echo or similar, so partest can't test it. --- test/files/neg/t6123-explaintypes-macros/BadMac_2.scala | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/files/neg/t6123-explaintypes-macros/BadMac_2.scala (limited to 'test/files/neg/t6123-explaintypes-macros/BadMac_2.scala') diff --git a/test/files/neg/t6123-explaintypes-macros/BadMac_2.scala b/test/files/neg/t6123-explaintypes-macros/BadMac_2.scala new file mode 100644 index 0000000000..38b8e24444 --- /dev/null +++ b/test/files/neg/t6123-explaintypes-macros/BadMac_2.scala @@ -0,0 +1,8 @@ +import scala.language.experimental.macros +import scala.reflect.macros.Context + +// explain some macro types to me +object BadMac { + def printf(format: String, params: Any*): Unit = macro printf_impl + def printf_impl(c: Context)(format: c.Expr[String], params: c.Expr[String]*): c.Expr[Unit] = ??? +} -- cgit v1.2.3