aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/SymDenotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-10-07 09:27:56 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2014-10-12 10:49:43 +0200
commitafd9a66453848412ae0a974ddd475da2b0d846bf (patch)
tree34c5207a6b388684a9e92a1ae5eca2526991d7f4 /src/dotty/tools/dotc/core/SymDenotations.scala
parent5de255637589b800ffc99ddb3453ccd651bfafc9 (diff)
downloaddotty-afd9a66453848412ae0a974ddd475da2b0d846bf.tar.gz
dotty-afd9a66453848412ae0a974ddd475da2b0d846bf.tar.bz2
dotty-afd9a66453848412ae0a974ddd475da2b0d846bf.zip
rename AddGetters -> GettersSetters
... and add a gettersSettersPhase to Context.
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/SymDenotations.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala
index 4d0513abf..da83811f1 100644
--- a/src/dotty/tools/dotc/core/SymDenotations.scala
+++ b/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -612,7 +612,7 @@ object SymDenotations {
/** The field accessed by this getter or setter, or if it does not exist, the getter */
def accessedFieldOrGetter(implicit ctx: Context): Symbol = {
- val fieldName = if (isSetter) name.asTermName.setterToGetter else name
+ val fieldName = if (isSetter) name.asTermName.getterName else name
val d = owner.info.decl(fieldName)
val field = d.suchThat(!_.is(Method)).symbol
def getter = d.suchThat(_.info.isParameterless).symbol