Files
kotlin-fork/idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInInlinedInSpecialNamedFunWithGet.kt
T
2019-10-08 19:13:55 +09:00

29 lines
453 B
Kotlin
Vendored

package stopInInlinedInSpecialNamedFunWithGet
// KT-12470
class Foo(bar: Bar) {
init {
with(bar) {
get<String> {
//Breakpoint!
nop()
nop()
}
}
}
private fun nop() {}
}
fun main(args: Array<String>) {
Foo(Bar())
}
class Bar
class BarContext
inline fun <reified T : Any> Bar.get(noinline body: BarContext.() -> Unit) {
BarContext().body()
}