diff options
author | Denys Shabalin <denys.shabalin@typesafe.com> | 2014-02-20 11:30:58 +0100 |
---|---|---|
committer | Denys Shabalin <denys.shabalin@typesafe.com> | 2014-02-20 13:17:16 +0100 |
commit | 23546f94145b1ff60258c893f972fd615c8a30fc (patch) | |
tree | d8316acd0a65eaccbac98721ee129681b640a177 | |
parent | d49c09e3f67d780d2757085e02b0a28d333527c4 (diff) | |
download | scala-23546f94145b1ff60258c893f972fd615c8a30fc.tar.gz scala-23546f94145b1ff60258c893f972fd615c8a30fc.tar.bz2 scala-23546f94145b1ff60258c893f972fd615c8a30fc.zip |
Tweak signature for quasiquote's apply
Even though quasiquotes are whitebox macros their
return values are in fact always trees. This might
help IDEs with macro expansions turned off.
-rw-r--r-- | src/reflect/scala/reflect/api/Quasiquotes.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reflect/scala/reflect/api/Quasiquotes.scala b/src/reflect/scala/reflect/api/Quasiquotes.scala index fcf8edcec7..c939eee164 100644 --- a/src/reflect/scala/reflect/api/Quasiquotes.scala +++ b/src/reflect/scala/reflect/api/Quasiquotes.scala @@ -7,7 +7,7 @@ trait Quasiquotes { self: Universe => // using the mechanism implemented in `scala.tools.reflect.FastTrack` implicit class Quasiquote(ctx: StringContext) { protected trait api { - def apply[T](args: T*): Any = macro ??? + def apply[T](args: T*): Tree = macro ??? def unapply(scrutinee: Any): Any = macro ??? } object q extends api |