Huh. For me line numbers in stack trace are invali...
# announcements
d
Huh. For me line numbers in stack trace are invalid for inlined function, so any
assert
shows a number beyond the end of file. I found this issue – https://youtrack.jetbrains.com/issue/KT-8066, but it appears to be fixed 3 mo's ago. Here is the sample code executed in try.kotl.in:
Copy code
fun foo() {
    assert(false)
}
fun main(args: Array<String>) {
    foo()
}
Copy code
Exception in thread "main" java.lang.AssertionError: Assertion failed
    at Assert_stack_traceKt.foo(assert stack trace.kt:12)
    at Assert_stack_traceKt.main(assert stack trace.kt:5)