summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/ast/TreeInfo.scala
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@epfl.ch>2010-09-14 15:11:28 +0000
committerLukas Rytz <lukas.rytz@epfl.ch>2010-09-14 15:11:28 +0000
commit5824594015d7a8871e14ad694100b3503bfdef1c (patch)
tree7b5e72bffff01828380e6998c248e22ae4057584 /src/compiler/scala/tools/nsc/ast/TreeInfo.scala
parent3b8129c77b9426a621163d4e5bf54943f58692a1 (diff)
downloadscala-5824594015d7a8871e14ad694100b3503bfdef1c.tar.gz
scala-5824594015d7a8871e14ad694100b3503bfdef1c.tar.bz2
scala-5824594015d7a8871e14ad694100b3503bfdef1c.zip
Close #3835, review by extempore
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/TreeInfo.scala')
-rw-r--r--src/compiler/scala/tools/nsc/ast/TreeInfo.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/TreeInfo.scala b/src/compiler/scala/tools/nsc/ast/TreeInfo.scala
index 394e9709a1..88f161f22d 100644
--- a/src/compiler/scala/tools/nsc/ast/TreeInfo.scala
+++ b/src/compiler/scala/tools/nsc/ast/TreeInfo.scala
@@ -210,7 +210,7 @@ abstract class TreeInfo {
/** Is name a variable name? */
def isVariableName(name: Name): Boolean = {
val first = name(0)
- (('a' <= first && first <= 'z') || first == '_') && !(reserved contains name)
+ ((first.isLower && first.isLetter) || first == '_') && !(reserved contains name)
}
/** Is tree a this node which belongs to `enclClass'? */