Skip to content

Commit 20448c8

Browse files
committed
address review feedback
1 parent 31ae57b commit 20448c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc-tool/src/dotty/tools/dottydoc/util/MemberLookup.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ trait MemberLookup {
7777
case (x :: xs, _) =>
7878
if (xs.nonEmpty) globalLookup
7979
else lookup(entity, packages, "scala." + query)
80-
case (Nil, _) => ??? // impossible as long as query is not empty
80+
case (Nil, _) =>
81+
throw new IllegalArgumentException("`query` cannot be empty")
8182
}
8283
}
8384

0 commit comments

Comments
 (0)