summaryrefslogtreecommitdiff
path: root/test/files/neg/reify_nested_inner_refers_to_local.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/reify_nested_inner_refers_to_local.check')
-rw-r--r--test/files/neg/reify_nested_inner_refers_to_local.check7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/reify_nested_inner_refers_to_local.check b/test/files/neg/reify_nested_inner_refers_to_local.check
new file mode 100644
index 0000000000..3f897bded9
--- /dev/null
+++ b/test/files/neg/reify_nested_inner_refers_to_local.check
@@ -0,0 +1,7 @@
+reify_nested_inner_refers_to_local.scala:9: error: the splice cannot be resolved statically, which means there is a cross-stage evaluation involved.
+cross-stage evaluations need to be invoked explicitly, so we're showing you this error.
+if you're sure this is not an oversight, add scala-compiler.jar to the classpath,
+import `scala.tools.reflect.Eval` and call `<your expr>.eval` instead.
+ reify{x}.splice
+ ^
+one error found