diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-05-17 02:02:16 -0700 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-05-17 02:02:16 -0700 |
commit | 7415430ca7f7995f870dd81b2f020afeeb6e316e (patch) | |
tree | b4547056abf2bfd45fe6fc90a017e43718749dd6 /test/files/neg | |
parent | 988e27adf95ba5177603b52c52cbae180d577b1a (diff) | |
parent | bc1071580203eda3f90433d930739f55a696a131 (diff) | |
download | scala-7415430ca7f7995f870dd81b2f020afeeb6e316e.tar.gz scala-7415430ca7f7995f870dd81b2f020afeeb6e316e.tar.bz2 scala-7415430ca7f7995f870dd81b2f020afeeb6e316e.zip |
Merge pull request #2497 from scalamacros/topic/macro-qqq
easy way of writing not implemented macros
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/macro-qmarkqmarkqmark.check | 13 | ||||
-rw-r--r-- | test/files/neg/macro-qmarkqmarkqmark.scala | 13 |
2 files changed, 26 insertions, 0 deletions
diff --git a/test/files/neg/macro-qmarkqmarkqmark.check b/test/files/neg/macro-qmarkqmarkqmark.check new file mode 100644 index 0000000000..afd49e7d90 --- /dev/null +++ b/test/files/neg/macro-qmarkqmarkqmark.check @@ -0,0 +1,13 @@ +macro-qmarkqmarkqmark.scala:5: error: macro implementation is missing + foo1 + ^ +macro-qmarkqmarkqmark.scala:8: error: macros cannot be partially applied + foo2 + ^ +macro-qmarkqmarkqmark.scala:9: error: macro implementation is missing + foo2(1) + ^ +macro-qmarkqmarkqmark.scala:12: error: macro implementation is missing + foo3[Int] + ^ +four errors found diff --git a/test/files/neg/macro-qmarkqmarkqmark.scala b/test/files/neg/macro-qmarkqmarkqmark.scala new file mode 100644 index 0000000000..c8d8550fd8 --- /dev/null +++ b/test/files/neg/macro-qmarkqmarkqmark.scala @@ -0,0 +1,13 @@ +import language.experimental.macros + +object Macros { + def foo1 = macro ??? + foo1 + + def foo2(x: Int) = macro ??? + foo2 + foo2(1) + + def foo3[T] = macro ??? + foo3[Int] +}
\ No newline at end of file |