From fef3c33b4af10b2ba0bf04aabe26265e21693337 Mon Sep 17 00:00:00 2001 From: Eugene Burmako Date: Thu, 27 Feb 2014 19:51:42 +0100 Subject: test case that verifies SI-8352 --- test/files/pos/t8352.check | 0 test/files/pos/t8352/Macros_1.scala | 7 +++++++ test/files/pos/t8352/Test_2.scala | 5 +++++ 3 files changed, 12 insertions(+) create mode 100644 test/files/pos/t8352.check create mode 100644 test/files/pos/t8352/Macros_1.scala create mode 100644 test/files/pos/t8352/Test_2.scala (limited to 'test/files/pos') diff --git a/test/files/pos/t8352.check b/test/files/pos/t8352.check new file mode 100644 index 0000000000..e69de29bb2 diff --git a/test/files/pos/t8352/Macros_1.scala b/test/files/pos/t8352/Macros_1.scala new file mode 100644 index 0000000000..f5c8ce578f --- /dev/null +++ b/test/files/pos/t8352/Macros_1.scala @@ -0,0 +1,7 @@ +import scala.reflect.macros.whitebox._ +import scala.language.experimental.macros + +object Macros { + def impl(c: Context)(x: c.Expr[Boolean]): c.Expr[Boolean] = x + def foo(x: Boolean): Boolean = macro impl +} \ No newline at end of file diff --git a/test/files/pos/t8352/Test_2.scala b/test/files/pos/t8352/Test_2.scala new file mode 100644 index 0000000000..b5bfe92ffb --- /dev/null +++ b/test/files/pos/t8352/Test_2.scala @@ -0,0 +1,5 @@ +object Test extends App { + def expectUnit() { + Macros.foo(true) + } +} \ No newline at end of file -- cgit v1.2.3