diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2015-09-03 12:38:54 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2015-09-03 14:10:40 +1000 |
commit | a67b04079716812004b0d44ad65d48c508cf7d9e (patch) | |
tree | 626bcec9c809a4e7583445f30c1392fa272f7db6 /test | |
parent | b6a812e0fa5bf333610884e72b0306f2bd7efee7 (diff) | |
download | scala-a67b04079716812004b0d44ad65d48c508cf7d9e.tar.gz scala-a67b04079716812004b0d44ad65d48c508cf7d9e.tar.bz2 scala-a67b04079716812004b0d44ad65d48c508cf7d9e.zip |
Add the prefix the autocompletion results (Scope-, TypeMember)
This makes life easier for clients of these APIs, we use this
to avoid passing this around in the wrapper result `TypeMembers`.
Diffstat (limited to 'test')
-rw-r--r-- | test/junit/scala/tools/nsc/interpreter/CompletionTest.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/junit/scala/tools/nsc/interpreter/CompletionTest.scala b/test/junit/scala/tools/nsc/interpreter/CompletionTest.scala index 70cb2882ba..8c72ed7b32 100644 --- a/test/junit/scala/tools/nsc/interpreter/CompletionTest.scala +++ b/test/junit/scala/tools/nsc/interpreter/CompletionTest.scala @@ -94,6 +94,9 @@ class CompletionTest { // and performs as-seen-from with respect to the prefix checkExact(completer, "trait T[A]{ lazy val x_y_z: A }; class C extends T[Int] { x_y_z")() checkExact(completer, "trait T[A]{ lazy val x_y_z: A }; class C extends T[Int] { x_y_z")(EmptyString, "lazy val x_y_z: Int") + + checkExact(completer, "trait T[A] { def foo: A }; (t: T[Int]) => t.foo")() + checkExact(completer, "trait T[A] { def foo: A }; (t: T[Int]) => t.foo")(EmptyString, "def foo: Int") } @Test |