diff options
author | Den Shabalin <den.shabalin@gmail.com> | 2013-12-02 15:12:54 +0100 |
---|---|---|
committer | Den Shabalin <den.shabalin@gmail.com> | 2013-12-10 16:02:13 +0100 |
commit | 0ccd4bcac64efe72d9758fbfb6a6dbce44cf308e (patch) | |
tree | a3531dc11a14924c9c527a086215c2b2504b296d /test/files/scalacheck/quasiquotes/ErrorProps.scala | |
parent | 26959249070cc0a00270e192885940dab050a693 (diff) | |
download | scala-0ccd4bcac64efe72d9758fbfb6a6dbce44cf308e.tar.gz scala-0ccd4bcac64efe72d9758fbfb6a6dbce44cf308e.tar.bz2 scala-0ccd4bcac64efe72d9758fbfb6a6dbce44cf308e.zip |
SI-6842 Make splicing less sensitive to precise types of trees
Previously trees that represent parameters, case clauses and
type variables had strictly defined ValDef, TypeDef and CaseDef
types which caused problems in compositionality.
Now this checks are moved to runtime so it's possible to pass
a tree that is CaseDef but has Tree type.
Diffstat (limited to 'test/files/scalacheck/quasiquotes/ErrorProps.scala')
-rw-r--r-- | test/files/scalacheck/quasiquotes/ErrorProps.scala | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/test/files/scalacheck/quasiquotes/ErrorProps.scala b/test/files/scalacheck/quasiquotes/ErrorProps.scala index cb46a60dbe..adad48fcdf 100644 --- a/test/files/scalacheck/quasiquotes/ErrorProps.scala +++ b/test/files/scalacheck/quasiquotes/ErrorProps.scala @@ -105,13 +105,6 @@ object ErrorProps extends QuasiquoteProperties("errors") { q"f($sb)" """) - property("casedef expected") = fails( - "reflect.runtime.universe.CaseDef expected but reflect.runtime.universe.Tree found", - """ - val t = EmptyTree - q"_ { case $t }" - """) - property("can't splice with ... card here") = fails( "Can't splice with ... here", """ |