summaryrefslogtreecommitdiff
path: root/test/files/neg/macro-noexpand
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-02-17 17:10:49 +0100
committerEugene Burmako <xeno.by@gmail.com>2012-02-17 22:57:12 +0100
commite9926a5207aadcfe3831b51b1cd6164757278013 (patch)
treed388f1445054b6007af493ad6d263f9d585299ff /test/files/neg/macro-noexpand
parent91148376049a152edec12348ff9b7e9e93e6ebe1 (diff)
downloadscala-e9926a5207aadcfe3831b51b1cd6164757278013.tar.gz
scala-e9926a5207aadcfe3831b51b1cd6164757278013.tar.bz2
scala-e9926a5207aadcfe3831b51b1cd6164757278013.zip
Fixes miscellaneous macro bugs
Diffstat (limited to 'test/files/neg/macro-noexpand')
-rw-r--r--test/files/neg/macro-noexpand/Macros_1.scala3
-rw-r--r--test/files/neg/macro-noexpand/Test_2.scala4
2 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/macro-noexpand/Macros_1.scala b/test/files/neg/macro-noexpand/Macros_1.scala
new file mode 100644
index 0000000000..7a6aadf6a1
--- /dev/null
+++ b/test/files/neg/macro-noexpand/Macros_1.scala
@@ -0,0 +1,3 @@
+object Macros {
+ def macro foo(x: Any) = ???
+} \ No newline at end of file
diff --git a/test/files/neg/macro-noexpand/Test_2.scala b/test/files/neg/macro-noexpand/Test_2.scala
new file mode 100644
index 0000000000..0bed592883
--- /dev/null
+++ b/test/files/neg/macro-noexpand/Test_2.scala
@@ -0,0 +1,4 @@
+object Test extends App {
+ import Macros._
+ foo(x)
+} \ No newline at end of file