JVM IR: Fix line numbers in callable reference classes

This commit is contained in:
Steven Schäfer
2019-12-19 11:38:58 +01:00
committed by max-kammerer
parent 59f2aa7add
commit e261b1e2de
9 changed files with 143 additions and 8 deletions
@@ -0,0 +1,23 @@
// FILE: test.kt
fun box() {
var x = false
f(::g)
}
fun f(block: () -> Unit) {
block()
}
fun g() {}
// LINENUMBERS
// TestKt.box():3
// TestKt.box():4
// TestKt.f(kotlin.jvm.functions.Function0):8
// TestKt.g():11
// TestKt$box$1.invoke():4
// TestKt$box$1.invoke():-1
// TestKt$box$1.invoke():-1
// TestKt.f(kotlin.jvm.functions.Function0):8
// TestKt.f(kotlin.jvm.functions.Function0):9
// TestKt.box():5