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,20 @@
// FILE: test.kt
fun box() {
var x = false
f(::g)
}
inline fun f(block: () -> Unit) {
block()
}
fun g() {}
// LINENUMBERS
// TestKt.box():3
// TestKt.box():4
// TestKt.box():8
// TestKt.box():4
// TestKt.g():11
// TestKt.box():9
// TestKt.box():5