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() {}
|
||||
Reference in New Issue
Block a user