diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-09-09 16:42:03 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-09-17 18:07:15 +0200 |
commit | f0dfea49476e1b1f1d3c0f60e52e96db957dff78 (patch) | |
tree | 8f06908fd27c195549efbafb405de7ae38fd36e1 /src/dotty/tools/dotc/core/SymDenotations.scala | |
parent | b22dc6d50f675ff713fd19e243f9cd439d7791b1 (diff) | |
download | dotty-f0dfea49476e1b1f1d3c0f60e52e96db957dff78.tar.gz dotty-f0dfea49476e1b1f1d3c0f60e52e96db957dff78.tar.bz2 dotty-f0dfea49476e1b1f1d3c0f60e52e96db957dff78.zip |
Changes from discussion in #171
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/SymDenotations.scala | 2 |
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 aed55e49a..88f75fbfd 100644 --- a/src/dotty/tools/dotc/core/SymDenotations.scala +++ b/src/dotty/tools/dotc/core/SymDenotations.scala @@ -200,7 +200,7 @@ object SymDenotations { final def hasAnnotation(cls: Symbol)(implicit ctx: Context) = dropOtherAnnotations(annotations, cls).nonEmpty - /** Optionally, the arguments of the first annotation matching the given class symbol */ + /** Optionally, get annotation matching the given class symbol */ final def getAnnotation(cls: Symbol)(implicit ctx: Context): Option[Annotation] = dropOtherAnnotations(annotations, cls) match { case annot :: _ => Some(annot) |