summaryrefslogtreecommitdiff
path: root/test/files/neg/compile-time-only-b.check
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2013-08-10 14:52:24 +0200
committerEugene Burmako <xeno.by@gmail.com>2013-08-15 08:06:22 +0200
commit840ad7656456f014135c2a5e31e0d9ffd63625bd (patch)
treee3333eae1e5db6457638ba6455efebd1f54d8ca5 /test/files/neg/compile-time-only-b.check
parent1b5f73129fc2f678d00905e5d851536251f8821a (diff)
downloadscala-840ad7656456f014135c2a5e31e0d9ffd63625bd.tar.gz
scala-840ad7656456f014135c2a5e31e0d9ffd63625bd.tar.bz2
scala-840ad7656456f014135c2a5e31e0d9ffd63625bd.zip
marks Expr.splice and Expr.value with @compileTimeOnly
Now that @compileTimeOnly is part of the standard library, why don't we use it within the standard library.
Diffstat (limited to 'test/files/neg/compile-time-only-b.check')
-rw-r--r--test/files/neg/compile-time-only-b.check7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/compile-time-only-b.check b/test/files/neg/compile-time-only-b.check
new file mode 100644
index 0000000000..8292a0ddeb
--- /dev/null
+++ b/test/files/neg/compile-time-only-b.check
@@ -0,0 +1,7 @@
+compile-time-only-b.scala:13: error: splice must be enclosed within a reify {} block
+ val ignored3 = reify(fortyTwo).splice
+ ^
+compile-time-only-b.scala:14: error: cannot use value except for signatures of macro implementations
+ val ignored4 = reify(fortyTwo).value
+ ^
+two errors found