diff options
author | Denys Shabalin <denys.shabalin@typesafe.com> | 2014-02-06 19:51:43 +0100 |
---|---|---|
committer | Denys Shabalin <denys.shabalin@typesafe.com> | 2014-02-07 12:47:45 +0100 |
commit | 1e5654c8bd10a3649ccc97c42a7949b179480073 (patch) | |
tree | 62bb8d1c833099d858209affc49b152eaf5e2a58 /test/files/run/reify_ann1a.scala | |
parent | d60b8323dda884653f31410806c269d15140e5e6 (diff) | |
download | scala-1e5654c8bd10a3649ccc97c42a7949b179480073.tar.gz scala-1e5654c8bd10a3649ccc97c42a7949b179480073.tar.bz2 scala-1e5654c8bd10a3649ccc97c42a7949b179480073.zip |
Represent tq"" as SyntacticEmptyTypeTree rather than TypeTree()
Such representation codifies the fact that type tree that doesn't have
embedded syntactic equivalent must have been inferred or otherwise
provided by the compiler rather than specified by the end user.
Additionally it also ensures that we can still match trees without
explicit types (e.g. vals without type) after typechecking. Otherwise
the same quote couldn't be used in situations like:
val q"val x = 42" = typecheck(q"val x = 42")
Diffstat (limited to 'test/files/run/reify_ann1a.scala')
0 files changed, 0 insertions, 0 deletions