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