Debugger: correctly box parameter types in case of generics
#KT-10180 Fixed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
LineBreakpoint created at boxReturnValue.kt:7
|
||||
!JDK_HOME!\bin\java -agentlib:jdwp=transport=dt_socket,address=!HOST_NAME!:!HOST_PORT!,suspend=y,server=n -Dfile.encoding=!FILE_ENCODING! -classpath !OUTPUT_PATH!;!KOTLIN_RUNTIME!;!CUSTOM_LIBRARY!;!RT_JAR! boxReturnValue.BoxReturnValueKt
|
||||
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
boxReturnValue.kt:7
|
||||
Compile bytecode for x
|
||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
|
||||
Process finished with exit code 0
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
package boxReturnValue
|
||||
|
||||
inline fun <X: Any> useInline(x: X) {
|
||||
// EXPRESSION: x
|
||||
// RESULT: instance of java.lang.Integer(id=ID): Ljava/lang/Integer;
|
||||
//Breakpoint!
|
||||
val a = 1
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
useInline(1)
|
||||
}
|
||||
Reference in New Issue
Block a user