AA: add tests about resolution of implicit lambda parameter
This commit is contained in:
committed by
Ilya Kirillov
parent
6734f542b3
commit
a74a51b2d9
@@ -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
|
||||
Reference in New Issue
Block a user