Highlighting: Support implicit 'it' references

#KT-21002 Fixed
This commit is contained in:
Alexey Sedunov
2017-11-01 15:39:17 +03:00
parent d1eaf444a6
commit b2e5e9dab5
6 changed files with 90 additions and 14 deletions
+13
View File
@@ -0,0 +1,13 @@
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
}
}