summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2013-01-05 00:31:58 +0300
committerEugene Burmako <xeno.by@gmail.com>2013-01-09 08:10:47 +0100
commitfa4531e9f28a0e49fdb63406307826c57b19f4bb (patch)
treebf7cb3cd635624c4a1e085b8c2dddf4eaef8e88c /test/files
parent66acf364ae3003dd1abb4eeb8759afc6e12aa1a1 (diff)
downloadscala-fa4531e9f28a0e49fdb63406307826c57b19f4bb.tar.gz
scala-fa4531e9f28a0e49fdb63406307826c57b19f4bb.tar.bz2
scala-fa4531e9f28a0e49fdb63406307826c57b19f4bb.zip
refactors handling of macros in repl
Macros now have a dedicated member handler, so that the logic of their processing doesn't get mixed up with vanilla DefHandler. I've also factored out an abstract MacroHandler to provides a basis to build the upcoming type macro handler upon.
Diffstat (limited to 'test/files')
-rw-r--r--test/files/run/macro-repl-dontexpand.check2
-rw-r--r--test/files/run/t6381.check2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/macro-repl-dontexpand.check b/test/files/run/macro-repl-dontexpand.check
index 628a9146c4..99b70ea3dc 100644
--- a/test/files/run/macro-repl-dontexpand.check
+++ b/test/files/run/macro-repl-dontexpand.check
@@ -7,6 +7,6 @@ scala> def bar(c: scala.reflect.macros.Context) = ???
bar: (c: scala.reflect.macros.Context)Nothing
scala> def foo = macro bar
-foo: Any
+defined term macro foo: Any
scala>
diff --git a/test/files/run/t6381.check b/test/files/run/t6381.check
index b51cfd0398..5070b67e46 100644
--- a/test/files/run/t6381.check
+++ b/test/files/run/t6381.check
@@ -9,7 +9,7 @@ scala> def pos_impl(c: reflect.macros.Context): c.Expr[String] =
pos_impl: (c: scala.reflect.macros.Context)c.Expr[String]
scala> def pos = macro pos_impl
-pos: String
+defined term macro pos: String
scala> pos
res0: String = class scala.reflect.internal.util.RangePosition