Keep $continuation in LVT
in case of suspend functions and `this` is case of lambdas, since they are used in async stack trace generation. Update tests. #KT-40661 Open
This commit is contained in:
+4
@@ -5,12 +5,15 @@ suspend fun main() {
|
||||
val b = 7
|
||||
none()
|
||||
foo()
|
||||
val dead1 = a
|
||||
val dead2 = b
|
||||
}
|
||||
|
||||
suspend fun foo() {
|
||||
val x = "foo"
|
||||
none()
|
||||
bar()
|
||||
val dead = x
|
||||
}
|
||||
|
||||
suspend fun bar() {
|
||||
@@ -19,6 +22,7 @@ suspend fun bar() {
|
||||
val z = "bar"
|
||||
//Breakpoint!
|
||||
val a = 5
|
||||
val dead = y
|
||||
}
|
||||
|
||||
suspend fun none() {}
|
||||
+4
-4
@@ -1,11 +1,11 @@
|
||||
LineBreakpoint created at asyncFunctions.kt:21
|
||||
LineBreakpoint created at asyncFunctions.kt:24
|
||||
Run Java
|
||||
Connected to the target VM
|
||||
asyncFunctions.kt:21
|
||||
asyncFunctions.kt:24
|
||||
Async stack trace:
|
||||
asyncFunctions.AsyncFunctionsKt:18
|
||||
asyncFunctions.AsyncFunctionsKt:21
|
||||
y = "zoo"
|
||||
asyncFunctions.AsyncFunctionsKt:13
|
||||
asyncFunctions.AsyncFunctionsKt:15
|
||||
x = "foo"
|
||||
asyncFunctions.AsyncFunctionsKt:7
|
||||
a = 5
|
||||
|
||||
Reference in New Issue
Block a user