aboutsummaryrefslogtreecommitdiff
path: root/dottydoc/jvm/src/dotty/tools/dottydoc/util/Traversing.scala
diff options
context:
space:
mode:
Diffstat (limited to 'dottydoc/jvm/src/dotty/tools/dottydoc/util/Traversing.scala')
-rw-r--r--dottydoc/jvm/src/dotty/tools/dottydoc/util/Traversing.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/dottydoc/jvm/src/dotty/tools/dottydoc/util/Traversing.scala b/dottydoc/jvm/src/dotty/tools/dottydoc/util/Traversing.scala
index 2ac8eae4f..a3b60fa44 100644
--- a/dottydoc/jvm/src/dotty/tools/dottydoc/util/Traversing.scala
+++ b/dottydoc/jvm/src/dotty/tools/dottydoc/util/Traversing.scala
@@ -13,6 +13,8 @@ object traversing {
def relativePath(from: Entity, to: Entity) = {
val offset = from match {
+ case v: Val if v.implicitlyAddedFrom.isDefined => 3
+ case d: Def if d.implicitlyAddedFrom.isDefined => 3
case _: Val | _: Def => 2
case _ => 1
}