diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2010-09-14 15:11:28 +0000 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2010-09-14 15:11:28 +0000 |
commit | 5824594015d7a8871e14ad694100b3503bfdef1c (patch) | |
tree | 7b5e72bffff01828380e6998c248e22ae4057584 /src/compiler/scala/tools/nsc/ast/TreeInfo.scala | |
parent | 3b8129c77b9426a621163d4e5bf54943f58692a1 (diff) | |
download | scala-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.scala | 2 |
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'? */ |