summaryrefslogtreecommitdiff
path: root/src/compiler/scala/reflect/internal/Symbols.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-08-06 19:34:49 +0000
committerPaul Phillips <paulp@improving.org>2011-08-06 19:34:49 +0000
commit990fa046e6bbe95d5def208b38fead77d2437f9f (patch)
treecaed0b83c9d4220f4ebe48ab844a8c41884df45d /src/compiler/scala/reflect/internal/Symbols.scala
parentead69ed24557ff42966a2bd5f71b6434ac5343b6 (diff)
downloadscala-990fa046e6bbe95d5def208b38fead77d2437f9f.tar.gz
scala-990fa046e6bbe95d5def208b38fead77d2437f9f.tar.bz2
scala-990fa046e6bbe95d5def208b38fead77d2437f9f.zip
Fixed bug in the disambiguation of f(foo='bar')...
Fixed bug in the disambiguation of f(foo='bar') style method calls in the presence of overloading, parameterization, and by-name arguments. Took the opportunity to clean things up a little bit. Closes SI-4592, review by rytz.
Diffstat (limited to 'src/compiler/scala/reflect/internal/Symbols.scala')
-rw-r--r--src/compiler/scala/reflect/internal/Symbols.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/scala/reflect/internal/Symbols.scala b/src/compiler/scala/reflect/internal/Symbols.scala
index 3e80f1cdee..4789d69c69 100644
--- a/src/compiler/scala/reflect/internal/Symbols.scala
+++ b/src/compiler/scala/reflect/internal/Symbols.scala
@@ -437,6 +437,8 @@ trait Symbols extends api.Symbols { self: SymbolTable =>
def hasBridgeAnnotation = hasAnnotation(BridgeClass)
def deprecationMessage = getAnnotation(DeprecatedAttr) flatMap (_ stringArg 0)
def deprecationVersion = getAnnotation(DeprecatedAttr) flatMap (_ stringArg 1)
+ def deprecatedParamName = getAnnotation(DeprecatedNameAttr) flatMap (_ symbolArg 0)
+
// !!! when annotation arguments are not literal strings, but any sort of
// assembly of strings, there is a fair chance they will turn up here not as
// Literal(const) but some arbitrary AST. However nothing in the compiler