diff options
author | Denys Shabalin <denys.shabalin@typesafe.com> | 2014-01-24 18:46:06 +0100 |
---|---|---|
committer | Denys Shabalin <denys.shabalin@typesafe.com> | 2014-01-24 18:46:06 +0100 |
commit | 40f1ff20927a1754f4aa7a417df62e3b87554d5a (patch) | |
tree | 8c56c311cc4f34302b5e511e7c5df3fe68a4b289 /src/compiler | |
parent | fdce4a0f64fbbe5b87c41f93ae33bb3084449fa3 (diff) | |
download | scala-40f1ff20927a1754f4aa7a417df62e3b87554d5a.tar.gz scala-40f1ff20927a1754f4aa7a417df62e3b87554d5a.tar.bz2 scala-40f1ff20927a1754f4aa7a417df62e3b87554d5a.zip |
SI-8171 make tq"" an alias for empty type tree
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/reflect/quasiquotes/Parsers.scala | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/reflect/quasiquotes/Parsers.scala b/src/compiler/scala/tools/reflect/quasiquotes/Parsers.scala index 1bd9323752..ec4ca1c845 100644 --- a/src/compiler/scala/tools/reflect/quasiquotes/Parsers.scala +++ b/src/compiler/scala/tools/reflect/quasiquotes/Parsers.scala @@ -170,7 +170,12 @@ trait Parsers { self: Quasiquotes => } object TypeParser extends Parser { - def entryPoint = _.typ() + def entryPoint = { parser => + if (parser.in.token == EOF) + TypeTree() + else + parser.typ() + } } object CaseParser extends Parser { |