diff options
Diffstat (limited to 'doc-tool/src/dotty/tools/dottydoc/util/MemberLookup.scala')
-rw-r--r-- | doc-tool/src/dotty/tools/dottydoc/util/MemberLookup.scala | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/doc-tool/src/dotty/tools/dottydoc/util/MemberLookup.scala b/doc-tool/src/dotty/tools/dottydoc/util/MemberLookup.scala index ad73ad008..caa57db52 100644 --- a/doc-tool/src/dotty/tools/dottydoc/util/MemberLookup.scala +++ b/doc-tool/src/dotty/tools/dottydoc/util/MemberLookup.scala @@ -30,13 +30,7 @@ trait MemberLookup { .collect { case x if x.name == searchStr => x } .sortBy(_.path.last) .headOption - .fold(notFound) { - case e: TypeAlias => - // TODO: will explode once type aliases are fixed - if (e.alias.isDefined) ??? - else notFound - case e => LinkToEntity(e) - } + .fold(notFound)(e => LinkToEntity(e)) /** Looks for an entity down in the structure, if the search list is Nil, * the search stops |