"Find Usages": add tests for Kotlin usages of Java declarations

This commit is contained in:
Alexey Sedunov
2013-10-29 16:22:26 +04:00
parent f41cfa2b8b
commit a0e90f38a2
30 changed files with 454 additions and 13 deletions
@@ -0,0 +1,38 @@
public class X(bar: String? = A.BAR): A() {
var next: A? = A()
val myBar: String? = A.BAR
{
A.BAR = ""
A.foos()
}
fun foo(a: A) {
val aa: A = a
aa.bar = ""
}
fun getNext(): A? {
return next
}
public override fun foo() {
super<A>.foo()
}
class object: A() {
}
}
object O: A() {
}
fun X.bar(a: A = A()) {
}
fun Any.toA(): A? {
return if (this is A) this as A else null
}