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:
Ilmir Usmanov
2020-07-28 12:49:38 +02:00
parent db40808186
commit 4fb5f8603a
23 changed files with 128 additions and 104 deletions
@@ -9,7 +9,7 @@ fun main() {
runBlocking {
val rootCoroutineVal = mainTestVal
TestSuspendA().a()
print("")
print(rootCoroutineVal)
}
}
@@ -18,7 +18,7 @@ class TestSuspendA {
suspend fun a() {
val methodVal = ""
InClassB().b()
print("")
print(methodVal)
}
class InClassB {
@@ -27,7 +27,7 @@ class TestSuspendA {
suspend fun b() {
val inClassBMethodVal = ""
InClassC().c()
print("")
print(inClassBMethodVal)
}
inner class InClassC {
@@ -37,7 +37,7 @@ class TestSuspendA {
yield()
val inClassCMethodVal = ""
//Breakpoint!
print("")
print(inClassCMethodVal)
}
}
}