Skip to content

Commit

Permalink
bugfix: Don't ask for override completions on null type
Browse files Browse the repository at this point in the history
  • Loading branch information
jkciesluk committed Mar 22, 2024
1 parent 6ef8385 commit 33618c1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -65,7 +65,7 @@ trait OverrideCompletions { this: MetalsGlobal =>
val lineStart: RunId = pos.source.lineToOffset(pos.line - 1)

override def contribute: List[Member] = {
if (start < 0) {
if (start < 0 || typed.tpe == null) {
Nil
} else {
val overrideMembers = getMembers(
Expand Down

0 comments on commit 33618c1

Please sign in to comment.