84c473d800
Avoid calling InetAddress.getLocalHost() that can be very slow. Exact connection or disconnection string isn't relevant for tests anyway.
77 lines
1.6 KiB
Plaintext
Vendored
77 lines
1.6 KiB
Plaintext
Vendored
LineBreakpoint created at frameThis0Ext.kt:15
|
|
Run Java
|
|
Connected to the target VM
|
|
frameThis0Ext.kt:15
|
|
Compile bytecode for val1
|
|
Compile bytecode for prop1
|
|
Compile bytecode for prop2
|
|
Compile bytecode for prop1 + val1
|
|
Compile bytecode for prop2 + val1
|
|
Compile bytecode for myFun1()
|
|
Compile bytecode for myFun2()
|
|
package frameThis0Ext
|
|
|
|
fun main(args: Array<String>) {
|
|
A().test()
|
|
}
|
|
|
|
class A {
|
|
val prop1 = 1
|
|
fun myFun1() = 1
|
|
|
|
fun AExt.testExt() {
|
|
val val1 = 1
|
|
foo {
|
|
//Breakpoint!
|
|
prop1 + prop2 + val1
|
|
}
|
|
}
|
|
|
|
fun test() {
|
|
AExt().testExt()
|
|
}
|
|
}
|
|
|
|
class AExt {
|
|
val prop2 = 1
|
|
fun myFun2() = 1
|
|
}
|
|
|
|
fun foo(f: () -> Unit) {
|
|
f()
|
|
}
|
|
|
|
// PRINT_FRAME
|
|
|
|
// EXPRESSION: val1
|
|
// RESULT: 1: I
|
|
|
|
// EXPRESSION: prop1
|
|
// RESULT: 1: I
|
|
|
|
// EXPRESSION: prop2
|
|
// RESULT: 1: I
|
|
|
|
// EXPRESSION: prop1 + val1
|
|
// RESULT: 2: I
|
|
|
|
// EXPRESSION: prop2 + val1
|
|
// RESULT: 2: I
|
|
|
|
// EXPRESSION: myFun1()
|
|
// RESULT: 1: I
|
|
|
|
// EXPRESSION: myFun2()
|
|
// RESULT: 1: I
|
|
frame = invoke:15, A$testExt$1 {frameThis0Ext}
|
|
this = this = {frameThis0Ext.A$testExt$1@uniqueID}Function0<kotlin.Unit>
|
|
field = this$0: frameThis0Ext.A = {frameThis0Ext.A@uniqueID} (sp = null)
|
|
field = prop1: int = 1 (sp = frameThis0Ext.kt, 8)
|
|
field = receiver$0: frameThis0Ext.AExt = {frameThis0Ext.AExt@uniqueID} (sp = null)
|
|
field = prop2: int = 1 (sp = frameThis0Ext.kt, 25)
|
|
field = $val1: int = 1 (sp = null)
|
|
field = arity: int = 0 (sp = Lambda.!EXT!)
|
|
Disconnected from the target VM
|
|
|
|
Process finished with exit code 0
|