Add "Find Usages" tests for nested/inner classes and objects

This commit is contained in:
Alexey Sedunov
2013-11-01 19:32:35 +04:00
parent f99e6e6765
commit bc9b2bf657
16 changed files with 331 additions and 0 deletions
@@ -0,0 +1,38 @@
public class X(bar: String? = Outer.A.BAR): Outer.A() {
var next: Outer.A? = Outer.A()
val myBar: String? = Outer.A.BAR
{
Outer.A.BAR = ""
Outer.A.foos()
}
fun foo(a: Outer.A) {
val aa: Outer.A = a
aa.bar = ""
}
fun getNext(): Outer.A? {
return next
}
public override fun foo() {
super<Outer.A>.foo()
}
class object: Outer.A() {
}
}
object O: Outer.A() {
}
fun X.bar(a: Outer.A = Outer.A()) {
}
fun Any.toA(): Outer.A? {
return if (this is Outer.A) this as Outer.A else null
}