summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2014-01-24 22:18:12 -0800
committerEugene Burmako <xeno.by@gmail.com>2014-01-24 22:18:12 -0800
commit1f519d9be8b07e54bc2a763e51fd8e056158a73b (patch)
tree015e8a7c5e7a5c7c709ebf7e55f9d6a6143eec79 /test
parent396742c899600cda14c24442cf063c78d1fc6ae8 (diff)
parent40f1ff20927a1754f4aa7a417df62e3b87554d5a (diff)
downloadscala-1f519d9be8b07e54bc2a763e51fd8e056158a73b.tar.gz
scala-1f519d9be8b07e54bc2a763e51fd8e056158a73b.tar.bz2
scala-1f519d9be8b07e54bc2a763e51fd8e056158a73b.zip
Merge pull request #3410 from densh/si/8171
SI-8171 make tq"" an alias for empty type tree
Diffstat (limited to 'test')
-rw-r--r--test/files/scalacheck/quasiquotes/TypeConstructionProps.scala8
1 files changed, 7 insertions, 1 deletions
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)
+ }
+}