We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 296289d commit 3c41f45Copy full SHA for 3c41f45
scala3doc/src/dotty/dokka/tasty/BasicSupport.scala
@@ -46,8 +46,8 @@ trait BasicSupport:
46
47
def isDeprecated(): Option[Annotation] =
48
sym.annotations.find { a =>
49
- a.symbol.packageName == "scala" && a.symbol.className.fold(false)(_ == "deprecated") ||
50
- a.symbol.packageName == "java.lang" && a.symbol.className.fold(false)(_ == "Deprecated")
+ a.symbol.packageName == "scala" && a.symbol.className.contains("deprecated") ||
+ a.symbol.packageName == "java.lang" && a.symbol.className.contains("Deprecated")
51
}.map(parseAnnotation)
52
53
def isLeftAssoc: Boolean = !sym.name.endsWith(":")
0 commit comments