mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
13 lines
302 B
Kotlin
13 lines
302 B
Kotlin
class X {
|
|
operator fun invoke() {}
|
|
}
|
|
|
|
fun <info descr="null">~X</info>.foo() {
|
|
<info descr="null">this</info>()
|
|
|
|
<info descr="null">run</info> {
|
|
print(this()) // no highlighting. The receiver is from `run` here.
|
|
}
|
|
}
|
|
|
|
public inline fun <T, R> T.run(block: T.() -> R): R = block() |