Extraction Engine: Support type parameter references
#KT-7260 Fixed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
LineBreakpoint created at typeParameterRef.kt:13
|
||||
!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! typeParameterRef.TypeParameterRefPackage
|
||||
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
typeParameterRef.kt:13
|
||||
Compile bytecode for foo<T>()
|
||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
|
||||
Process finished with exit code 0
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package typeParameterRef
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
test<Int>()
|
||||
}
|
||||
|
||||
fun foo<U>(): Int {
|
||||
return 1
|
||||
}
|
||||
|
||||
fun test<T>() {
|
||||
//Breakpoint!
|
||||
val a = foo<T>()
|
||||
}
|
||||
|
||||
// EXPRESSION: foo<T>()
|
||||
// RESULT: 1: I
|
||||
Reference in New Issue
Block a user