diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-04-25 21:13:29 +0300 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-04-25 21:56:36 +0300 |
commit | b242637ee1fc6db79992a67073219ec87150d06a (patch) | |
tree | 828d854e66c4bfc8d7008bf726e893f730ed920b /test | |
parent | 5cf9499731255078de62c8f3704fa596b564bf0e (diff) | |
download | scala-b242637ee1fc6db79992a67073219ec87150d06a.tar.gz scala-b242637ee1fc6db79992a67073219ec87150d06a.tar.bz2 scala-b242637ee1fc6db79992a67073219ec87150d06a.zip |
diagnostics for SI-5692
Diffstat (limited to 'test')
-rw-r--r-- | test/pending/run/t5692.flags | 1 | ||||
-rw-r--r-- | test/pending/run/t5692/Impls_Macros_1.scala | 9 | ||||
-rw-r--r-- | test/pending/run/t5692/Test_2.scala | 4 |
3 files changed, 14 insertions, 0 deletions
diff --git a/test/pending/run/t5692.flags b/test/pending/run/t5692.flags new file mode 100644 index 0000000000..cd66464f2f --- /dev/null +++ b/test/pending/run/t5692.flags @@ -0,0 +1 @@ +-language:experimental.macros
\ No newline at end of file diff --git a/test/pending/run/t5692/Impls_Macros_1.scala b/test/pending/run/t5692/Impls_Macros_1.scala new file mode 100644 index 0000000000..f9c1e5f12b --- /dev/null +++ b/test/pending/run/t5692/Impls_Macros_1.scala @@ -0,0 +1,9 @@ +import scala.reflect.makro.Context + +object Impls { + def impl[A](c: reflect.makro.Context) = c.reify(()) +} + +object Macros { + def decl[A] = macro Impls.impl[A] +}
\ No newline at end of file diff --git a/test/pending/run/t5692/Test_2.scala b/test/pending/run/t5692/Test_2.scala new file mode 100644 index 0000000000..29251a5ef5 --- /dev/null +++ b/test/pending/run/t5692/Test_2.scala @@ -0,0 +1,4 @@ +object Test extends App { + val x = Macros.decl + def y() { Macros.decl(); } +}
\ No newline at end of file |