84c473d800
Avoid calling InetAddress.getLocalHost() that can be very slow. Exact connection or disconnection string isn't relevant for tests anyway.
37 lines
1.3 KiB
Plaintext
Vendored
37 lines
1.3 KiB
Plaintext
Vendored
LineBreakpoint created at delegatedPropertyInClassWithToString.kt:8
|
|
Run Java
|
|
Connected to the target VM
|
|
delegatedPropertyInClassWithToString.kt:8
|
|
package delegatedPropertyInClassWithToString
|
|
|
|
import kotlin.reflect.KProperty
|
|
|
|
fun main(args: Array<String>) {
|
|
val a = A()
|
|
//Breakpoint!
|
|
args.size
|
|
}
|
|
|
|
class A {
|
|
val prop by MyDelegate()
|
|
|
|
override fun toString(): String = "KotlinTest"
|
|
}
|
|
|
|
class MyDelegate {
|
|
operator fun getValue(t: Any?, p: KProperty<*>): Int = 1
|
|
}
|
|
|
|
// PRINT_FRAME
|
|
|
|
Compile bytecode for args.size
|
|
frame = main:8, DelegatedPropertyInClassWithToStringKt {delegatedPropertyInClassWithToString}
|
|
local = args: java.lang.String[] = {java.lang.String[0]@uniqueID} (sp = delegatedPropertyInClassWithToString.kt, 5)
|
|
local = a: delegatedPropertyInClassWithToString.A = {delegatedPropertyInClassWithToString.A@uniqueID}KotlinTest (sp = delegatedPropertyInClassWithToString.kt, 6)
|
|
field = prop$delegate: delegatedPropertyInClassWithToString.MyDelegate = {delegatedPropertyInClassWithToString.MyDelegate@uniqueID} (sp = delegatedPropertyInClassWithToString.kt, 12)
|
|
- Class has no fields
|
|
field = prop: int = 1 (sp = delegatedPropertyInClassWithToString.kt, 12)
|
|
Disconnected from the target VM
|
|
|
|
Process finished with exit code 0
|