From 840ad7656456f014135c2a5e31e0d9ffd63625bd Mon Sep 17 00:00:00 2001 From: Eugene Burmako Date: Sat, 10 Aug 2013 14:52:24 +0200 Subject: 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. --- test/files/neg/compile-time-only-b.check | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/files/neg/compile-time-only-b.check (limited to 'test/files/neg/compile-time-only-b.check') 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 -- cgit v1.2.3