Find Usages: Look for as-property usages of Java methods
This commit is contained in:
committed by
Alexey Sedunov
parent
7e9222f70a
commit
9c360ef05a
+25
@@ -0,0 +1,25 @@
|
||||
open class A {
|
||||
open var p: Int = 1
|
||||
}
|
||||
|
||||
class AA : A() {
|
||||
override var p: Int = 1
|
||||
}
|
||||
|
||||
class B : J() {
|
||||
override var p: Int = 1
|
||||
}
|
||||
|
||||
fun test() {
|
||||
val t = A().p
|
||||
A().p = 1
|
||||
|
||||
val t = AA().p
|
||||
AA().p = 1
|
||||
|
||||
val t = J().p
|
||||
J().p = 1
|
||||
|
||||
val t = B().p
|
||||
B().p = 1
|
||||
}
|
||||
Reference in New Issue
Block a user