Skip to content

Commit d7d5364

Browse files
committed
Remove the nonexistent ValueOf.valueOf and add ValueOf to the completion filter
1 parent c765967 commit d7d5364

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

presentation-compiler/src/main/dotty/tools/pc/completions/Completions.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -737,12 +737,12 @@ class Completions(
737737
// NOTE(olafur) IntelliJ does not complete the root package and without this filter
738738
// then `_root_` would appear as a completion result in the code `foobar(_<COMPLETE>)`
739739
defn.RootPackage,
740+
// NOTE(gabro) valueOf was added as a Predef member in 2.13. We filter it out since is a niche
741+
// use case and it would appear upon typing 'val'
742+
defn.ValueOfClass
740743
) ++ (
741744
Set(
742745
defn.ObjectClass.info.member(nme.wait_),
743-
// NOTE(gabro) valueOf was added as a Predef member in 2.13. We filter it out since is a niche
744-
// use case and it would appear upon typing 'val'
745-
defn.ValueOfClass.info.member(nme.valueOf),
746746
defn.ScalaPredefModule.info.member(nme.valueOf)
747747
).flatMap(_.alternatives.map(_.symbol)).toSet
748748
)

0 commit comments

Comments
 (0)