19 lines
239 B
Kotlin
Vendored
19 lines
239 B
Kotlin
Vendored
package test
|
|
|
|
inline fun foo(x: Function0<Unit>) {
|
|
}
|
|
|
|
fun String.id(s: String = <this>, vararg xs: Int): String {
|
|
return s
|
|
}
|
|
|
|
fun test() {
|
|
foo(x = { // BLOCK
|
|
local fun String.id() {
|
|
receiver.id()
|
|
}
|
|
|
|
"Fail"::id
|
|
})
|
|
}
|