Support inline properties in debugger class search
This commit is contained in:
committed by
Yan Zhulanow
parent
cb9e90183a
commit
9e61eea758
@@ -0,0 +1,9 @@
|
||||
LineBreakpoint created at inlineProperties.kt:8
|
||||
LineBreakpoint created at inlineProperties.kt:20
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
inlineProperties.kt:8
|
||||
inlineProperties.kt:20
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,9 @@
|
||||
LineBreakpoint created at inlinePropertyAccessors.kt:8
|
||||
LineBreakpoint created at inlinePropertyAccessors.kt:20
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
inlinePropertyAccessors.kt:8
|
||||
inlinePropertyAccessors.kt:20
|
||||
Disconnected from the target VM
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,24 @@
|
||||
package inlineProperties
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
class A {
|
||||
inline val a: String
|
||||
get() {
|
||||
//Breakpoint!
|
||||
return System.nanoTime().toString()
|
||||
}
|
||||
}
|
||||
|
||||
A().apply { a }
|
||||
B().apply { b }
|
||||
}
|
||||
|
||||
class B {
|
||||
inline val b: String
|
||||
get() {
|
||||
//Breakpoint!
|
||||
return System.nanoTime().toString()
|
||||
}
|
||||
}
|
||||
|
||||
// RESUME: 2
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
package inlinePropertyAccessors
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
class A {
|
||||
val a: String
|
||||
inline get() {
|
||||
//Breakpoint!
|
||||
return System.nanoTime().toString()
|
||||
}
|
||||
}
|
||||
|
||||
A().apply { a }
|
||||
B().apply { b }
|
||||
}
|
||||
|
||||
class B {
|
||||
val b: String
|
||||
inline get() {
|
||||
//Breakpoint!
|
||||
return System.nanoTime().toString()
|
||||
}
|
||||
}
|
||||
|
||||
// RESUME: 2
|
||||
Reference in New Issue
Block a user