Write line numbers for bridge methods (line for class header)

This commit is contained in:
Natalia Ukhorskaya
2014-10-31 15:57:13 +03:00
parent 0047655ed3
commit 4eb93c06b1
6 changed files with 69 additions and 12 deletions
@@ -0,0 +1,10 @@
LineBreakpoint created at syntheticMethods.kt:6
!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! syntheticMethods.SyntheticMethodsPackage
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
syntheticMethods.kt:6
syntheticMethods.kt:18
syntheticMethods.kt:16
syntheticMethods.kt:7
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
Process finished with exit code 0
@@ -0,0 +1,22 @@
package syntheticMethods
fun main(args: Array<String>) {
val d: Base<String> = Derived()
//Breakpoint!
d.foo("")
val a = 1
}
open class Base<T> {
open fun foo(t: T) {
val a = 1
}
}
class Derived: Base<String>() {
override fun foo(t: String) {
val a = 1
}
}
// STEP_INTO: 3