summaryrefslogtreecommitdiff
path: root/src/reflect/scala/reflect/api
diff options
context:
space:
mode:
authorSom Snytt <som.snytt@gmail.com>2014-08-05 23:03:41 -0700
committerSom Snytt <som.snytt@gmail.com>2014-08-12 08:41:14 -0700
commit606a553e12dbc1bda25939dbda3e7fcaaaa678b9 (patch)
treefada590b863e805aa5ace25481e6a36255213b97 /src/reflect/scala/reflect/api
parent2e3583b3644f3acd67933b54b9b61e6d60e9b6bb (diff)
downloadscala-606a553e12dbc1bda25939dbda3e7fcaaaa678b9.tar.gz
scala-606a553e12dbc1bda25939dbda3e7fcaaaa678b9.tar.bz2
scala-606a553e12dbc1bda25939dbda3e7fcaaaa678b9.zip
SI-8512 Infer Any for the q
Avoid the widening bug for q. This resolution also suffers from the inference of Any, which can trigger a warning and an anxiety attack. But that's still better than doing the wrong thing. Right?
Diffstat (limited to 'src/reflect/scala/reflect/api')
-rw-r--r--src/reflect/scala/reflect/api/Quasiquotes.scala2
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 e905aa4153..eaae05bed5 100644
--- a/src/reflect/scala/reflect/api/Quasiquotes.scala
+++ b/src/reflect/scala/reflect/api/Quasiquotes.scala
@@ -13,7 +13,7 @@ trait Quasiquotes { self: Universe =>
protected trait api {
// implementation is hardwired to `dispatch` method of `scala.tools.reflect.quasiquotes.Quasiquotes`
// using the mechanism implemented in `scala.tools.reflect.FastTrack`
- def apply[T](args: T*): Tree = macro ???
+ def apply[A >: Any](args: A*): Tree = macro ???
def unapply(scrutinee: Any): Any = macro ???
}
object q extends api