Skip to content

Commit 567e9f2

Browse files
author
skyluc
committed
Added test for the completion problem in the pr...
Added test for the completion problem in the presentation compiler reported in the scala-ide ticket 1000620.
1 parent 8797267 commit 567e9f2

File tree

4 files changed

+53
-0
lines changed

4 files changed

+53
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
reload: A.scala, B.scala
2+
3+
askTypeCompletion at B.scala(6,6)
4+
================================================================================
5+
[response] aksTypeCompletion at (6,6)
6+
retrieved 36 members
7+
`method !=(x$1: Any)Boolean`
8+
`method !=(x$1: AnyRef)Boolean`
9+
`method ##()Int`
10+
`method +(other: String)java.lang.String`
11+
`method ->[B](y: B)(a.A, B)`
12+
`method ==(x$1: Any)Boolean`
13+
`method ==(x$1: AnyRef)Boolean`
14+
`method asInstanceOf[T0]=> T0`
15+
`method clone()java.lang.Object`
16+
`method ensuring(cond: Boolean)a.A`
17+
`method ensuring(cond: Boolean, msg: => Any)a.A`
18+
`method ensuring(cond: a.A => Boolean)a.A`
19+
`method ensuring(cond: a.A => Boolean, msg: => Any)a.A`
20+
`method eq(x$1: AnyRef)Boolean`
21+
`method equals(x$1: Any)Boolean`
22+
`method finalize()Unit`
23+
`method formatted(fmtstr: String)String`
24+
`method hashCode()Int`
25+
`method isInstanceOf[T0]=> Boolean`
26+
`method ne(x$1: AnyRef)Boolean`
27+
`method notify()Unit`
28+
`method notifyAll()Unit`
29+
`method synchronized[T0](x$1: T0)T0`
30+
`method toString()java.lang.String`
31+
`method wait()Unit`
32+
`method wait(x$1: Long)Unit`
33+
`method wait(x$1: Long, x$2: Int)Unit`
34+
`method →[B](y: B)(a.A, B)`
35+
`value selfAny`
36+
`value xa.A`
37+
================================================================================
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import scala.tools.nsc.interactive.tests._
2+
3+
object Test extends InteractiveTest
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package a
2+
class A {
3+
private var a= 0
4+
protected var b= 0
5+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package b
2+
import a.A
3+
class B {
4+
def main(args: Array[String]) {
5+
val a = new A()
6+
a./*!*/
7+
}
8+
}

0 commit comments

Comments
 (0)