Debugger: fix evaluate expression for traits
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
LineBreakpoint created at extractThisInTrait.kt:10
|
||||
!JDK_HOME!\bin\java -agentlib:jdwp=transport=dt_socket,address=!HOST_NAME!:!HOST_PORT!,suspend=y,server=n -Dfile.encoding=!FILE_ENCODING! -classpath !APP_PATH!\classes;!KOTLIN_RUNTIME!;!CUSTOM_LIBRARY!;!RT_JAR! extractThisInTrait.ExtractThisInTraitPackage
|
||||
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
extractThisInTrait.kt:10
|
||||
Compile bytecode for prop
|
||||
Compile bytecode for this.prop
|
||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
|
||||
Process finished with exit code 0
|
||||
@@ -0,0 +1,23 @@
|
||||
package extractThisInTrait
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
TImpl().foo()
|
||||
}
|
||||
|
||||
trait T {
|
||||
fun foo() {
|
||||
//Breakpoint!
|
||||
val a = 1
|
||||
}
|
||||
|
||||
val prop: Int
|
||||
get() = 1
|
||||
}
|
||||
|
||||
class TImpl(): T
|
||||
|
||||
// EXPRESSION: prop
|
||||
// RESULT: 1: I
|
||||
|
||||
// EXPRESSION: this.prop
|
||||
// RESULT: 1: I
|
||||
Reference in New Issue
Block a user