Use doResume name for suspend lambdas context (KT-16481)
#KT-16481 Fixed
This commit is contained in:
committed by
Nikolay Krasko
parent
dffbe0f707
commit
f0be88fc07
@@ -0,0 +1,8 @@
|
||||
LineBreakpoint created at stopInCrossinlineInSuspend.kt:12
|
||||
!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! stopInCrossinlineInSuspend.StopInCrossinlineInSuspendKt
|
||||
Connected to the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
stopInCrossinlineInSuspend.kt:12
|
||||
stopInCrossinlineInSuspend.kt:13
|
||||
Disconnected from the target VM, address: '!HOST_NAME!:PORT_NAME!', transport: 'socket'
|
||||
|
||||
Process finished with exit code 0
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
package stopInCrossinlineInSuspend
|
||||
|
||||
import forTests.builder
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val a = 12
|
||||
|
||||
builder {
|
||||
ci {
|
||||
{
|
||||
//Breakpoint!
|
||||
foo(a)
|
||||
}()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun foo(a: Any? = null) {}
|
||||
|
||||
inline fun ci(crossinline builder: () -> Unit) {
|
||||
builder()
|
||||
}
|
||||
Reference in New Issue
Block a user