b9dee4e93a
#KT-35101 Fixed
14 lines
233 B
Kotlin
Vendored
14 lines
233 B
Kotlin
Vendored
// FILE: 1.kt
|
|
package test
|
|
|
|
inline fun <T, R> T.let2(block: (T) -> R): R {
|
|
return block(this)
|
|
}
|
|
|
|
// FILE: 2.kt
|
|
import test.*
|
|
|
|
fun box(): String {
|
|
val result = true.let2(Boolean::not)
|
|
return if (!result) "OK" else "fail"
|
|
} |