Debugger: Fix "Step over" with inline function calls in non-functions (KT-20342)

This commit is contained in:
Yan Zhulanow
2019-08-08 21:39:07 +09:00
parent 7bd628f989
commit 8325216d38
12 changed files with 206 additions and 10 deletions
@@ -0,0 +1,23 @@
package inlineFunInClassInitializer
fun main() {
Goo()
}
class Foo(val a: String?)
class DumbList<T>(private val element: T) : AbstractList<T>() {
override val size get() = 1
override fun get(index: Int) = if (index == 0) element else error("Invalid index $index")
}
class Goo {
init {
//Breakpoint!
val a = DumbList(Foo("a"))
val b = a.mapNotNull { it.a }
1
}
}
// STEP_OVER: 2