AA: indicate whether a value parameter is an implicit lambda parameter
^KTIJ-18800 In progress
This commit is contained in:
committed by
Ilya Kirillov
parent
a74a51b2d9
commit
889db4cc5d
+9
@@ -0,0 +1,9 @@
|
||||
// DO_NOT_CHECK_SYMBOL_RESTORE
|
||||
|
||||
inline fun <T, R> T.use(block: (T) -> R): R {
|
||||
return block(this)
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
42.use { i<caret>t.toString() }
|
||||
}
|
||||
Reference in New Issue
Block a user