Skip to content

Commit

Permalink
Merge pull request #13909 from dotty-staging/scaladoc/too-implicit-cl…
Browse files Browse the repository at this point in the history
…asses

Scaladoc: Fix double implicit modifier
  • Loading branch information
pikinier20 authored Nov 12, 2021
2 parents 9794737 + d8581de commit 4025951
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions scaladoc-testcases/src/tests/classModifiers.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ sealed case class D(c: String)
final case class E(c: String)

open class F

implicit class Foo(i: Int)
2 changes: 1 addition & 1 deletion scaladoc/src/dotty/tools/scaladoc/tasty/SymOps.scala
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ object SymOps:
Flags.Case -> Modifier.Case,
).collect {
case (flag, mod) if sym.flags.is(flag) => mod
} ++ Seq(Modifier.Implicit).filter(_ => sym.isImplicitClass)
}

def isHiddenByVisibility(using dctx: DocContext): Boolean =
import VisibilityScope._
Expand Down

0 comments on commit 4025951

Please sign in to comment.