From 40f1ff20927a1754f4aa7a417df62e3b87554d5a Mon Sep 17 00:00:00 2001 From: Denys Shabalin Date: Fri, 24 Jan 2014 18:46:06 +0100 Subject: SI-8171 make tq"" an alias for empty type tree --- test/files/scalacheck/quasiquotes/TypeConstructionProps.scala | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/files/scalacheck/quasiquotes/TypeConstructionProps.scala b/test/files/scalacheck/quasiquotes/TypeConstructionProps.scala index be7a96d91e..0984032084 100644 --- a/test/files/scalacheck/quasiquotes/TypeConstructionProps.scala +++ b/test/files/scalacheck/quasiquotes/TypeConstructionProps.scala @@ -28,4 +28,10 @@ object TypeConstructionProps extends QuasiquoteProperties("type construction") val restpe = tq"C" assert(tq"..$argtpes => $restpe" ≈ tq"(A, B) => C") } -} \ No newline at end of file + + property("empty tq") = test { + val tt: TypeTree = tq" " + assert(tt.tpe == null) + assert(tt.original == null) + } +} -- cgit v1.2.3