summaryrefslogtreecommitdiff
path: root/test/files/run/t6381.check
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2012-09-20 22:02:18 +0200
committerJason Zaugg <jzaugg@gmail.com>2012-09-20 22:05:01 +0200
commit676d895b7827f988b95a23c5bf7d40719fa438fe (patch)
tree5b723cf2fae7ceb4a8826506c018942882aa2922 /test/files/run/t6381.check
parentfeb77881ff8bc1e46c8ae4317a9d95cbf97e34bd (diff)
downloadscala-676d895b7827f988b95a23c5bf7d40719fa438fe.tar.gz
scala-676d895b7827f988b95a23c5bf7d40719fa438fe.tar.bz2
scala-676d895b7827f988b95a23c5bf7d40719fa438fe.zip
SI-6381 Honour -Yrangepos in the REPL
Diffstat (limited to 'test/files/run/t6381.check')
-rw-r--r--test/files/run/t6381.check17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/files/run/t6381.check b/test/files/run/t6381.check
new file mode 100644
index 0000000000..b51cfd0398
--- /dev/null
+++ b/test/files/run/t6381.check
@@ -0,0 +1,17 @@
+Type in expressions to have them evaluated.
+Type :help for more information.
+
+scala> import language.experimental.macros
+import language.experimental.macros
+
+scala> def pos_impl(c: reflect.macros.Context): c.Expr[String] =
+ c.literal(c.enclosingPosition.getClass.toString)
+pos_impl: (c: scala.reflect.macros.Context)c.Expr[String]
+
+scala> def pos = macro pos_impl
+pos: String
+
+scala> pos
+res0: String = class scala.reflect.internal.util.RangePosition
+
+scala>