diff options
author | Lukas Rytz <lukas.rytz@typesafe.com> | 2015-03-23 21:25:26 +0100 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@typesafe.com> | 2015-03-23 21:25:26 +0100 |
commit | e6e5b146f19ac7bebf046a4bc0cbc0b8ce88a3a1 (patch) | |
tree | 931ced52d7e95f7c82505519ace151b8dfc17595 /src/reflect | |
parent | b40b81cd3b1cd8b8b93df3b912fa10ccf1b53b26 (diff) | |
parent | e99378fcfb367bd91969f25d21ccf784315ce7c0 (diff) | |
download | scala-e6e5b146f19ac7bebf046a4bc0cbc0b8ce88a3a1.tar.gz scala-e6e5b146f19ac7bebf046a4bc0cbc0b8ce88a3a1.tar.bz2 scala-e6e5b146f19ac7bebf046a4bc0cbc0b8ce88a3a1.zip |
Merge pull request #4302 from som-snytt/issue/deprecate-named-param
SI-9140 Allow deprecating current parameter name
Diffstat (limited to 'src/reflect')
-rw-r--r-- | src/reflect/scala/reflect/internal/Symbols.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reflect/scala/reflect/internal/Symbols.scala b/src/reflect/scala/reflect/internal/Symbols.scala index f2aa14b866..293af68c5f 100644 --- a/src/reflect/scala/reflect/internal/Symbols.scala +++ b/src/reflect/scala/reflect/internal/Symbols.scala @@ -858,7 +858,7 @@ trait Symbols extends api.Symbols { self: SymbolTable => def isDeprecated = hasAnnotation(DeprecatedAttr) def deprecationMessage = getAnnotation(DeprecatedAttr) flatMap (_ stringArg 0) def deprecationVersion = getAnnotation(DeprecatedAttr) flatMap (_ stringArg 1) - def deprecatedParamName = getAnnotation(DeprecatedNameAttr) flatMap (_ symbolArg 0) + def deprecatedParamName = getAnnotation(DeprecatedNameAttr) flatMap (_ symbolArg 0 orElse Some(nme.NO_NAME)) def hasDeprecatedInheritanceAnnotation = hasAnnotation(DeprecatedInheritanceAttr) def deprecatedInheritanceMessage |