<@U0AAQKT9Q>: for the following code I getting a s...
# announcements
d
@ilya.gorbunov: for the following code I getting a stack trace with exception at line 4, like the function isn't inlined. But if I include lambda to parameters list, the exception points to the call site.
Copy code
const val DEBUG: Boolean = true
public inline fun assertInDebug(value: Boolean) {
    if (DEBUG && !value)
        throw AssertionError("Assertion failed")
}

fun main(args: Array<String>) {
    assertInDebug(args.size == 1000)
}