summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/ast
diff options
context:
space:
mode:
authorSimon Ochsenreither <simon@ochsenreither.de>2014-11-29 03:44:05 +0100
committerSimon Ochsenreither <simon@ochsenreither.de>2015-03-26 03:13:21 +0100
commite5bfc1c097e8dea9e0643e4a43743196209e9ba8 (patch)
tree7bf873964861d9976f57a776bfc938572cad34f6 /src/compiler/scala/tools/nsc/ast
parent4a3e9372363194560bbe0c04aec2108953ea89dd (diff)
downloadscala-e5bfc1c097e8dea9e0643e4a43743196209e9ba8.tar.gz
scala-e5bfc1c097e8dea9e0643e4a43743196209e9ba8.tar.bz2
scala-e5bfc1c097e8dea9e0643e4a43743196209e9ba8.zip
Deprecations: Use of isPackage, hasSymbol, getter, setter...
... replaced by hasPackageFlag, hasSymbolIn, getterIn, setterIn.
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast')
-rw-r--r--src/compiler/scala/tools/nsc/ast/Trees.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/Trees.scala b/src/compiler/scala/tools/nsc/ast/Trees.scala
index 3a502bdb7a..934257092f 100644
--- a/src/compiler/scala/tools/nsc/ast/Trees.scala
+++ b/src/compiler/scala/tools/nsc/ast/Trees.scala
@@ -308,7 +308,7 @@ trait Trees extends scala.reflect.internal.Trees { self: Global =>
// Erasing locally-defined symbols is useful to prevent tree corruption, but erasing external bindings is not,
// therefore we want to retain those bindings, especially given that restoring them can be impossible
// if we move these trees into lexical contexts different from their original locations.
- if (dupl.hasSymbol) {
+ if (dupl.hasSymbolField) {
val sym = dupl.symbol
val vetoScope = !brutally && !(locals contains sym) && !(locals contains sym.deSkolemize)
val vetoThis = dupl.isInstanceOf[This] && sym.isPackageClass