summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2013-08-10 14:58:09 +0200
committerEugene Burmako <xeno.by@gmail.com>2013-08-15 08:06:22 +0200
commit4ca45cb4c14595d491cc0cfc509fa88fb4dd5619 (patch)
treef5eff9c3b1d4e54a6257ee6a645011b86322f511 /test/files
parent840ad7656456f014135c2a5e31e0d9ffd63625bd (diff)
downloadscala-4ca45cb4c14595d491cc0cfc509fa88fb4dd5619.tar.gz
scala-4ca45cb4c14595d491cc0cfc509fa88fb4dd5619.tar.bz2
scala-4ca45cb4c14595d491cc0cfc509fa88fb4dd5619.zip
@compileTimeOnly now works for annotations
http://docs.scala-lang.org/overviews/macros/annotations.html say sincere "thank you!".
Diffstat (limited to 'test/files')
-rw-r--r--test/files/neg/compile-time-only-a.check11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/files/neg/compile-time-only-a.check b/test/files/neg/compile-time-only-a.check
index 99d7a8e2dd..3a6ded7cfc 100644
--- a/test/files/neg/compile-time-only-a.check
+++ b/test/files/neg/compile-time-only-a.check
@@ -16,4 +16,13 @@ compile-time-only-a.scala:48: error: C6.y
compile-time-only-a.scala:48: error: C6.y
c6.y = c6.y
^
-6 errors found
+compile-time-only-a.scala:54: error: placebo
+@placebo
+ ^
+compile-time-only-a.scala:56: error: placebo
+ @placebo def x = (2: @placebo)
+ ^
+compile-time-only-a.scala:56: error: placebo
+ @placebo def x = (2: @placebo)
+ ^
+9 errors found