summaryrefslogtreecommitdiff
path: root/bincompat-backward.whitelist.conf
diff options
context:
space:
mode:
authorDenys Shabalin <denys.shabalin@typesafe.com>2014-03-06 17:45:49 +0200
committerDenys Shabalin <denys.shabalin@typesafe.com>2014-03-10 20:35:22 +0200
commit6dbd770b41ae125c4c11158c687f68452b09e51f (patch)
treec93c5fb38b857171215077a26151bf1ea3843d2d /bincompat-backward.whitelist.conf
parent7f07d44bcc97ba8435e8c77393554571c9a006ad (diff)
downloadscala-6dbd770b41ae125c4c11158c687f68452b09e51f.tar.gz
scala-6dbd770b41ae125c4c11158c687f68452b09e51f.tar.bz2
scala-6dbd770b41ae125c4c11158c687f68452b09e51f.zip
SI-8366 make partial function and match trees disjoint
Previously one could match a partial function with match quasiquote: scala> val q"$scrutinee match { case ..$cases }" = q"{ case Foo => Bar }" scrutinee: universe.Tree = <empty> cases: List[universe.CaseDef] = List(case Foo => Bar) This was quite annoying as it leaked encoding of partial functions as Match trees with empty tree in place of scrutinee. This commit make sure that matches and partial functions are disjoint and don't match one another (while preserving original encoding under the hood out of sight of the end user.)
Diffstat (limited to 'bincompat-backward.whitelist.conf')
-rw-r--r--bincompat-backward.whitelist.conf5
1 files changed, 5 insertions, 0 deletions
diff --git a/bincompat-backward.whitelist.conf b/bincompat-backward.whitelist.conf
index e82c0fd16d..ae31c286f3 100644
--- a/bincompat-backward.whitelist.conf
+++ b/bincompat-backward.whitelist.conf
@@ -122,6 +122,11 @@ filter {
{
matchName="scala.reflect.api.Internals#ReificationSupportApi.SyntacticSelectTerm"
problemName=MissingMethodProblem
+ },
+ // see SI-8366
+ {
+ matchName="scala.reflect.api.Internals#ReificationSupportApi.SyntacticPartialFunction"
+ problemName=MissingMethodProblem
}
]
}