Files
kotlin-fork/idea/testData/usageHighlighter/implicitIt.kt
T
Alexey Sedunov b2e5e9dab5 Highlighting: Support implicit 'it' references
#KT-21002 Fixed
2017-11-03 16:34:36 +03:00

13 lines
300 B
Kotlin
Vendored

fun foo(body: (Int) -> Unit) = body(1)
fun test() {
foo {
val x = <info descr="null">~it</info> + 1
val xx = <info descr="null">it</info> + 2
foo {
val y = it - 1
val yy = it - 2
}
val xxx = <info descr="null">it</info> + 3
}
}