File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
src/main/dotty/tools/pc/completions
test/dotty/tools/pc/tests/completion Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -734,15 +734,18 @@ class Completions(
734
734
defn.Object_notifyAll ,
735
735
defn.Object_notify ,
736
736
defn.Predef_undefined ,
737
- defn.ObjectClass .info.member(nme.wait_).symbol,
738
737
// NOTE(olafur) IntelliJ does not complete the root package and without this filter
739
738
// then `_root_` would appear as a completion result in the code `foobar(_<COMPLETE>)`
740
739
defn.RootPackage ,
741
740
// NOTE(gabro) valueOf was added as a Predef member in 2.13. We filter it out since is a niche
742
741
// use case and it would appear upon typing 'val'
743
- defn.ValueOfClass .info.member(nme.valueOf).symbol,
744
- defn.ScalaPredefModule .requiredMethod(nme.valueOf)
745
- ).flatMap(_.alternatives.map(_.symbol)).toSet
742
+ defn.ValueOfClass
743
+ ) ++ (
744
+ Set (
745
+ defn.ObjectClass .info.member(nme.wait_),
746
+ defn.ScalaPredefModule .info.member(nme.valueOf)
747
+ ).flatMap(_.alternatives.map(_.symbol)).toSet
748
+ )
746
749
747
750
private def isNotLocalForwardReference (sym : Symbol )(using Context ): Boolean =
748
751
! sym.isLocalToBlock ||
Original file line number Diff line number Diff line change @@ -129,9 +129,6 @@ class CompletionSuite extends BaseCompletionSuite:
129
129
|isInstanceOf[X0]: Boolean
130
130
|synchronized[X0](x$0: X0): X0
131
131
|toString(): String
132
- |wait(): Unit
133
- |wait(x$0: Long): Unit
134
- |wait(x$0: Long, x$1: Int): Unit
135
132
|""" .stripMargin
136
133
)
137
134
You can’t perform that action at this time.
0 commit comments