aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/macro-qmarkqmarkqmark.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/macro-qmarkqmarkqmark.scala')
-rw-r--r--tests/untried/neg/macro-qmarkqmarkqmark.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/untried/neg/macro-qmarkqmarkqmark.scala b/tests/untried/neg/macro-qmarkqmarkqmark.scala
new file mode 100644
index 000000000..6c0462ea8
--- /dev/null
+++ b/tests/untried/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]
+}