diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2014-02-27 19:51:42 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2014-02-27 19:51:42 +0100 |
commit | fef3c33b4af10b2ba0bf04aabe26265e21693337 (patch) | |
tree | b21eb71b4d0904829a22fb8fcbd5eaf97df32dbf /test/files/pos | |
parent | 13e7b8112fb412bb3ed29716409087aed0f2a7e4 (diff) | |
download | scala-fef3c33b4af10b2ba0bf04aabe26265e21693337.tar.gz scala-fef3c33b4af10b2ba0bf04aabe26265e21693337.tar.bz2 scala-fef3c33b4af10b2ba0bf04aabe26265e21693337.zip |
test case that verifies SI-8352
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t8352.check | 0 | ||||
-rw-r--r-- | test/files/pos/t8352/Macros_1.scala | 7 | ||||
-rw-r--r-- | test/files/pos/t8352/Test_2.scala | 5 |
3 files changed, 12 insertions, 0 deletions
diff --git a/test/files/pos/t8352.check b/test/files/pos/t8352.check new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/test/files/pos/t8352.check 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 |