AA: add tests about resolution of implicit lambda parameter

This commit is contained in:
Jinseong Jeon
2022-04-18 00:12:43 -07:00
committed by Ilya Kirillov
parent 6734f542b3
commit a74a51b2d9
8 changed files with 68 additions and 0 deletions
@@ -0,0 +1,9 @@
inline fun <T, R> T.use(block: (T) -> R): R {
return block(this)
}
fun foo() {
42.use { it ->
i<caret>t.toString()
}
}
@@ -0,0 +1,2 @@
Resolved to:
0: it: kotlin.Int
@@ -0,0 +1,7 @@
inline fun <T, R> T.use(block: (T) -> R): R {
return block(this)
}
fun foo() {
42.use { i<caret>t.toString() }
}
@@ -0,0 +1,2 @@
Resolved to:
0: it: kotlin.Int