Allow to find usages of Java class via references to its constructor #KT-4521 Fixed

This commit is contained in:
Alexey Sedunov
2014-02-07 12:25:13 +04:00
parent 8b6bd8a184
commit d549257bfc
18 changed files with 138 additions and 17 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
}