Files
kotlin-fork/compiler/testData/codegen/box/fir/callableReferenceToStaticFunction.kt
T
2021-03-29 12:42:54 +03:00

14 lines
215 B
Kotlin
Vendored

// TARGET_BACKEND: JVM_IR
// JVM_TARGET: 1.8
// FULL_JDK
// WITH_STDLIB
import java.nio.file.Files
import java.nio.file.Path
fun test(path: Path): Path? {
return path.takeIf(Files::exists)
}
fun box() = "OK"