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

23 lines
419 B
Kotlin
Vendored

package stopInInlineCallInFieldInClassWithNonDefaultPrimary
class A {
var value = 42
var b: String = "".inlineApply {
{
//Breakpoint!
foo(value)
}()
}
constructor(): this("")
constructor(a: String) {}
}
fun foo(a: Any) {}
fun main(args: Array<String>) {
A()
}
inline fun <T> T.inlineApply(block: T.() -> kotlin.Unit): T { this.block(); return this }