From 5758a2bcbc7a9c2e0e37d9701c1d28c0a6bed8be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Zyba=C5=82a?= Date: Mon, 8 Nov 2021 11:29:28 +0100 Subject: [PATCH 1/2] Fix double implicit modifier --- scaladoc/src/dotty/tools/scaladoc/tasty/SymOps.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scaladoc/src/dotty/tools/scaladoc/tasty/SymOps.scala b/scaladoc/src/dotty/tools/scaladoc/tasty/SymOps.scala index 6e80c164d1d9..e412475cbf2c 100644 --- a/scaladoc/src/dotty/tools/scaladoc/tasty/SymOps.scala +++ b/scaladoc/src/dotty/tools/scaladoc/tasty/SymOps.scala @@ -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._ From d8581de2ac0584e91d12467b2f7f18f8ce3365ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Zyba=C5=82a?= Date: Fri, 12 Nov 2021 11:20:23 +0100 Subject: [PATCH 2/2] Add test for implicit class --- scaladoc-testcases/src/tests/classModifiers.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scaladoc-testcases/src/tests/classModifiers.scala b/scaladoc-testcases/src/tests/classModifiers.scala index a189c0e0c53b..c129ef92de2c 100644 --- a/scaladoc-testcases/src/tests/classModifiers.scala +++ b/scaladoc-testcases/src/tests/classModifiers.scala @@ -11,3 +11,5 @@ sealed case class D(c: String) final case class E(c: String) open class F + +implicit class Foo(i: Int)