aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/transform/PatternMatcher.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-10-11 22:45:34 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2014-10-12 11:12:29 +0200
commitc1cc79befdd5e5f7eaf7a2bc69cc70e6959ca57d (patch)
treec8dba7fdf34d9ae41d0e920e0572273c40969236 /src/dotty/tools/dotc/transform/PatternMatcher.scala
parente9be067cd1f46f0ba0fbabaefd31716e85fefc47 (diff)
downloaddotty-c1cc79befdd5e5f7eaf7a2bc69cc70e6959ca57d.tar.gz
dotty-c1cc79befdd5e5f7eaf7a2bc69cc70e6959ca57d.tar.bz2
dotty-c1cc79befdd5e5f7eaf7a2bc69cc70e6959ca57d.zip
Adaptations to make pattern matcher in new world
Tests now always include erasure (before quite a few tests failed when erasure was enableed). By contrast lazy vals creates problems with erasure, disabled for now. Some other small polishings on integration of pattern matcher with rest of dotc. Deep recompilation of tools still fails, currently disabled.
Diffstat (limited to 'src/dotty/tools/dotc/transform/PatternMatcher.scala')
-rw-r--r--src/dotty/tools/dotc/transform/PatternMatcher.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/transform/PatternMatcher.scala b/src/dotty/tools/dotc/transform/PatternMatcher.scala
index 29c05ca61..9087ba0c4 100644
--- a/src/dotty/tools/dotc/transform/PatternMatcher.scala
+++ b/src/dotty/tools/dotc/transform/PatternMatcher.scala
@@ -945,7 +945,7 @@ class PatternMatcher extends MiniPhaseTransform with DenotTransformer {thisTrans
def isVarPattern(pat: Tree): Boolean = pat match {
case x: BackquotedIdent => false
- case x: Ident => nme.isVariableName(x.name)
+ case x: Ident => x.name.isVariableName
case _ => false
}