summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Typers.scala
diff options
context:
space:
mode:
authorMiles Sabin <miles@milessabin.com>2016-11-28 12:11:07 +0000
committerMiles Sabin <miles@milessabin.com>2016-11-28 12:12:23 +0000
commit6ec56abd80cb8f4c4f2c4a8b4788d2e17ce84942 (patch)
tree3b708d99daacb48542c62a476fde68fb4cd3c2e2 /src/compiler/scala/tools/nsc/typechecker/Typers.scala
parent690ba800ec04f05c0f5e5e369863ab5b9578d42f (diff)
downloadscala-6ec56abd80cb8f4c4f2c4a8b4788d2e17ce84942.tar.gz
scala-6ec56abd80cb8f4c4f2c4a8b4788d2e17ce84942.tar.bz2
scala-6ec56abd80cb8f4c4f2c4a8b4788d2e17ce84942.zip
Pattern matching virtualization now guarded by -Yvirtpatmat.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index cca6f280e3..c89a410334 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -2555,7 +2555,7 @@ trait Typers extends Adaptations with Tags with TypersTracking with PatternTyper
// TODO: add fallback __match sentinel to predef
val matchStrategy: Tree =
- if (!(settings.Xexperimental && context.isNameInScope(vpmName._match))) null // fast path, avoiding the next line if there's no __match to be seen
+ if (!(settings.Yvirtpatmat && context.isNameInScope(vpmName._match))) null // fast path, avoiding the next line if there's no __match to be seen
else newTyper(context.makeImplicit(reportAmbiguousErrors = false)).silent(_.typed(Ident(vpmName._match)), reportAmbiguousErrors = false) orElse (_ => null)
if (matchStrategy ne null) // virtualize