mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
24 lines
422 B
Kotlin
Vendored
24 lines
422 B
Kotlin
Vendored
// 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
|