diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2014-03-13 18:14:04 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2014-03-13 18:14:04 +0100 |
commit | 0fc0aadff69b91f73e9cdb29f5a3bb071dacd2fc (patch) | |
tree | 5263813e389498bb15ed5f88b6a3ac29db22d9c3 | |
parent | 9c38e86a5526887f93a3f031b19a0e4fa31745d3 (diff) | |
download | scala-0fc0aadff69b91f73e9cdb29f5a3bb071dacd2fc.tar.gz scala-0fc0aadff69b91f73e9cdb29f5a3bb071dacd2fc.tar.bz2 scala-0fc0aadff69b91f73e9cdb29f5a3bb071dacd2fc.zip |
SI-8086 follow-up that fixes the problem with `setter`
This is a super-low risk follow-up for 47dba05 that fixes the same
problem with a neighboring method.
-rw-r--r-- | src/reflect/scala/reflect/internal/Symbols.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/reflect/scala/reflect/internal/Symbols.scala b/src/reflect/scala/reflect/internal/Symbols.scala index 595d638c28..2ce54d2259 100644 --- a/src/reflect/scala/reflect/internal/Symbols.scala +++ b/src/reflect/scala/reflect/internal/Symbols.scala @@ -2343,7 +2343,11 @@ trait Symbols extends api.Symbols { self: SymbolTable => def localName: TermName = name.localName /** The setter of this value or getter definition, or NoSymbol if none exists */ + @deprecated("Use `setterIn` instead", "2.11.0") final def setter(base: Symbol, hasExpandedName: Boolean = needsExpandedSetterName): Symbol = + setterIn(base, hasExpandedName) + + final def setterIn(base: Symbol, hasExpandedName: Boolean = needsExpandedSetterName): Symbol = base.info decl setterNameInBase(base, hasExpandedName) filter (_.hasAccessorFlag) def needsExpandedSetterName = ( |