From a67b04079716812004b0d44ad65d48c508cf7d9e Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Thu, 3 Sep 2015 12:38:54 +1000 Subject: 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`. --- test/junit/scala/tools/nsc/interpreter/CompletionTest.scala | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/junit') 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 -- cgit v1.2.3